How to remove /home
after baseUrl
?
www.baseurl.com/home
I want to redirect www.baseurl.com/home
to www.baseurl.com
(301)
base-urlmagento2url-rewrite
How to remove /home
after baseUrl
?
www.baseurl.com/home
I want to redirect www.baseurl.com/home
to www.baseurl.com
(301)
Best Answer
You can do it using htaccess file . In htacess file find:
Options +FollowSymLinks RewriteEngine on
Then Put the below code in htaccess file
RewriteCond %{THE_REQUEST} ^.*/home RewriteRule ^(.*)home$ http://www.domain.com/$1 [R=301,L]
or you can do this by
Go to
System->Configuration->Web->Url Options
and set the fieldAuto-redirect to Base URL
toNo
.Please check following links for more reference Product Page without www redirect to home instead of itself
https://stackoverflow.com/questions/23129310/magento-redirect-the-url-from-www-domain-com-home-to-base-url-www-domain-com