Skip to content
Grav 2.0 is officially stable. Read the announcement →
Support

Redirecting/hiding the direct home page route

first-time

Started by Maxmillion McLaughlin 8 years ago · 0 replies · 491 views
8 years ago

I'm looking for a solution to disable the direct route to my home page. Say I have a page created with the slug home and I set it as my homepage in my site.yaml. I can access it through example.com/ or example.com/home. I'd rather not allow pages to have multiple routes to avoid confusion with crawling and sitemaps - is there a clean solution to this without monitoring the uri and redirecting?

Suggested topics

Topic Participants Replies Views Activity
Support · by Duc , 2 hours ago
1 17 1 hour ago
Support · by Thomas, 1 week ago
3 101 10 hours ago
Support · by Anna, 3 days ago
2 99 1 day ago
Support · by Justin Young, 1 day ago
1 66 1 day ago
Support · by Duc , 1 week ago
2 101 6 days ago