Magento, redirect the url from “www.domain.com/hom

2019-08-24 03:12发布

I am trying to configure how to redirect my magento website from www.domain.com/home to base url www.domain.com, it always redirecting to www.domain.com/home

UPDATE

Thanks Amit, I use your solution

RewriteEngine on
RewriteCond %{THE_REQUEST} ^.*/accueil
RewriteRule ^(.*)accueil$ http://www.cabas-durables.fr/$1 [R=301,L]

but I got error at the browser says

The page isn't redirecting properly

then I change the $1 after http://www.cabas-durables.fr/$1 to index.php, then it shows "http://www.cabas-durables.fr/index.php" at the browser, then I bring it back to $1 I got no error but it stays to "http://www.cabas-durables.fr/index.php"

I don't know where to change it to only "http://www.cabas-durables.fr/"

I will have problem with SEO if it not change

thanks

2条回答
Rolldiameter
2楼-- · 2019-08-24 03:48

Create URL Redirect in admin panel.

Use tagret path - "../"; it will redirect to the homepage.

查看更多
Explosion°爆炸
3楼-- · 2019-08-24 03:52

It can be better to use htaccess. 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] 
查看更多
登录 后发表回答