Jump to content

Desperately Need 301 Redirect Help After Disabling Languages


Recommended Posts

Hi there!
 

I recently disabled languages for a florist website using Prestashop 1.5.4.1. However, since I've done that, I've gotten complaints that certain pages that were indexed by Google are now retuning 404 errors. :unsure:

 

Is there any way I can use a 301 redirect that will point /en and all pages with /en/filename.html and use the canonical URL?

 

THANKS SO MUCH!
:)

Link to comment
Share on other sites

Thanks for the reply! I tried it, but now it gives me a /da/fileurl.html instead of just the site.com/fileurl.html.

 

If it helps at all, here's the local flower shop website I'm working on.

 

Another question, is why there doesn't seem to be any rel=canonical tags in any of my pages? What do I need to do to add them?

Edited by remindworks (see edit history)
Link to comment
Share on other sites

Thanks again! I executed both Add missing products to the index and Re-build the entire index, but I'm still getting the redirect loop for any URL that has /en in it.

 

http://infullbloom-flowers.com/en/

http://infullbloom-flowers.com/en/content/1-delivery-policy-in-full-bloom

http://infullbloom-flowers.com/en/17-flowers-plants

Edited by remindworks (see edit history)
Link to comment
Share on other sites

So the code should look like this?

 

 

RewriteEngine On

RewriteRule ^en/(.*)$ $1
RewriteRule ^en/(.*)$ /en/$1 [L,NC,NE,R=301]
RewriteRule ^fr/(.*)$ /en/$1 [L,NC,NE,R=301]
RewriteRule ^es/(.*)$ /en/$1 [L,NC,NE,R=301]
RewriteRule ^de/(.*)$ /en/$1 [L,NC,NE,R=301]
RewriteRule ^ru/(.*)$ /en/$1 [L,NC,NE,R=301]

Link to comment
Share on other sites

I entered in the code right at the top of the .htaccess file, but it's still not working. I uploaded a screenshot of my SEO URL settings if that helps.

 

I also forgot to mention that, although I reviewed the link you sent and it looks like settings meant for a version of Prestashop that's higher than mine. I've attached a picture showing what SEO options I have for products.

 

Finally, the tutorial doesn't seem to tell me what's the best way to add a canonical URL for the homepage. If it does and I missed it, I'm sorry. post-931684-0-89026200-1424283676_thumb.png

post-931684-0-95060600-1424312486_thumb.png

Edited by remindworks (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...