remindworks Posted February 18, 2015 Share Posted February 18, 2015 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. 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 More sharing options...
remindworks Posted February 18, 2015 Author Share Posted February 18, 2015 (edited) 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 February 18, 2015 by remindworks (see edit history) Link to comment Share on other sites More sharing options...
remindworks Posted February 18, 2015 Author Share Posted February 18, 2015 Ah, I see! DUH! But the problem I'm seeing now is that for search results or for any link that still contains the /en, I get a redirect loop. How do I fix those links? Link to comment Share on other sites More sharing options...
remindworks Posted February 18, 2015 Author Share Posted February 18, 2015 (edited) 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 February 18, 2015 by remindworks (see edit history) Link to comment Share on other sites More sharing options...
remindworks Posted February 18, 2015 Author Share Posted February 18, 2015 So the code should look like this? RewriteEngine OnRewriteRule ^en/(.*)$ $1RewriteRule ^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 More sharing options...
remindworks Posted February 18, 2015 Author Share Posted February 18, 2015 Done. But when I clicked the links, I'm still getting URLs with the /en in the URL. Also, how do I set the Canonical URL for the homepage? Link to comment Share on other sites More sharing options...
remindworks Posted February 18, 2015 Author Share Posted February 18, 2015 (edited) 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. Edited February 19, 2015 by remindworks (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now