문제

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?

도움이 되었습니까?

해결책

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 /

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 magento.stackexchange
scroll top