Question

By default, Magento uses the URL key 'home' for the CMS homepage. The problem is that the homepage now has 2 URL's. http://example.com/home and http://example.com/. I don't like this behaviour, it also may affect SEO.

Magento doesn't allow changing the URL key to '/' or ''. Is there a decent method to resolve this without having to resort to canonical tags or 301 redirects?

Was it helpful?

Solution

First, /home should NOT be crawl from sitemap.xml. Magento 2 is excluded from this page Url from the sitemap. xml.

In your case, I suggest simple htaccess redirection if you using apache.

RedirectMatch 301 /home /

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top