Magento 2: How to not use URL /home
سؤال
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 /
لا تنتمي إلى magento.stackexchange