Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Redirecting/hiding the direct home page route

first-time

Started by Maxmillion McLaughlin 8 years ago · 0 replies · 579 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 blu3prince, 4 days ago
1 74 8 hours ago
Support · by complanar, 7 days ago
6 161 2 days ago
Support · by Rick Beebe, 7 days ago
2 118 3 days ago
Support · by alex, 5 days ago
2 102 4 days ago
Support · by Marcel, 2 weeks ago
1 153 5 days ago