Hi, I have installed grav in a folder (mainsite/grav-subfolder) to host a blog for the main site. Now the problem is that when trying to access mainsite/grav-subfolder the system performs a 301 redirect to mainsite/grav-subfolder/, however the canonical url for the page seems to be mainsite/grav-subfolder. This seems to create a number of SEO issues. I can’t seem to find where to remove that 301 rule, can anyone point me in the right direction?
This is a tough one. I tried setting a custom route through the Grav config but you can’t set an empty destination. Also removing trailing slashes through a rewrite rule in the .htaccess file doesn’t help. Somehow Grav adds the slash when serving the homepage.
As this behaviour is harming a site’s SEO performance I think it is legitimate to create an issue in the Grav core repository.