2

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

RewriteEngine on
RewriteCond %{THE_REQUEST} ^.*/home
RewriteRule ^(.*)home$ http://www.mywebsite.com/$1 [R=301,L]

but I got error at the browser says "The page isn't redirecting properly"

I don't know where to change it to only "http://www.mywebsite.com/"

I will have problem with SEO if it not change

0

Khali. please try this

find RewriteEngine on at .htaccess then file added below code

RewriteCond %{THE_REQUEST} ^.*/home
RewriteRule ^(.*)home$ http://www.domain.com/$1 [R=301,L] 
0

Try this in your .htaccess file:

RewriteCond     %{HTTPS} !=on
RewriteCond %{HTTP_HOST} !^www\.yourwebsite\.com$ [NC]
RewriteRule ^(.*)$ http://www.yourwebsite.com/$1 [L,R=301]

You may need to make alternations based on whether or not you require support for https.

  • Thanks moose, I tried that, It still coming back to cabas-durables.fr/accueil – Khalil Apr 17 '14 at 18:49
  • the problem I found is the url is taking the category page instead of the cms home page url, I don't know why – Khalil Apr 17 '14 at 20:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.