Hi, I'm just starting to use Automad but I really like the concept. Is there a way to redirect the root page (Home) to a different page? I'd love to have the ability to switch the entry point of my website whenever I need it.
Thanks in advance, Bruno
Vibrationz Hi, yeah it is possible using a snippets block with a redirect statement. But I will take a look at it and maybe also add the redirect option to the settings for the homepage.
redirect
mad Thanks a lot... will dive into the documentation to find out how to do this ;-)
Ok, I just put this in my header.php to redirect to the page called 'info' and it seems to work fine:
<@ if @{ :level } = 0 @> <@ redirect { url: "/info" } @> <@ end @>
Vibrationz Hi, great! I recommend to just put the redirect statement without the condition in a snippet block directly in the editor of the homepage. That way the redirect is treated as content and therefore will be unaffected by any updates to the themes or templates.
Powered by FreeFlarum.(remove this footer)