bostamaster Posted January 30, 2014 Share Posted January 30, 2014 Ladies and Gentlemen Hello I am moving a website from wordpress to prestashop. I have plenty of indexed URLs and I don't to want to loose them. How can I make massive redirections The redirections i nee to do are: 1- www.yukkaz.com/boutique ===> www.yukkaz.com/mobiles-d-occasion 2- hundreds of products that are under /boutique example: www.yukkaz.com/boutique/samsung-s7070 ===> www.yukkaz.com/samsung-s7070 How can I write these redirections. I don't want to write hundreds of sentences. Thank you for your help. Link to comment Share on other sites More sharing options...
Dh42 Posted January 30, 2014 Share Posted January 30, 2014 Screming frog might be able to do it, I would check it out. Link to comment Share on other sites More sharing options...
FME_Modules Posted January 31, 2014 Share Posted January 31, 2014 (edited) edited Use this code to redirect the whole directory and its RewriteEngine On RewriteRule ^boutique/(.*)$ /mobiles-d-occasion/$1 [R=301,NC,L] Edited January 31, 2014 by alastairbrian (see edit history) Link to comment Share on other sites More sharing options...
Dh42 Posted January 31, 2014 Share Posted January 31, 2014 He said he was not changing domains. Link to comment Share on other sites More sharing options...
Rolige Posted January 31, 2014 Share Posted January 31, 2014 (edited) Hi bostamaster,You need make a permanent redirect 301Try to insert the next code in your .htaccess file: Redirect 301 /boutique http://www.yukkaz.com/mobiles-d-occasion RedirectMatch 301 /boutique/(.*) http://www.yukkaz.com/$1 Tell me if this works, regards. Edited January 31, 2014 by COTOKO (see edit history) Link to comment Share on other sites More sharing options...
FME_Modules Posted January 31, 2014 Share Posted January 31, 2014 He said he was not changing domains. Thank You! Posted edited, My Bad Link to comment Share on other sites More sharing options...
bostamaster Posted February 3, 2014 Author Share Posted February 3, 2014 edited Use this code to redirect the whole directory and its RewriteEngine On RewriteRule ^boutique/(.*)$ /mobiles-d-occasion/$1 [R=301,NC,L] Thank you guys. This is working 1 Link to comment Share on other sites More sharing options...
FME_Modules Posted February 4, 2014 Share Posted February 4, 2014 Thank you guys. This is working That is great, Please edit the topic titles as - [solved] redirect many URLs / moving a site from wordpress Link to comment Share on other sites More sharing options...
bostamaster Posted February 6, 2014 Author Share Posted February 6, 2014 Actually I still have some issues. when I write mysite.com/boutique/something it redirects to mysite.com when i write mysite.com/boutique/ it redirects to mysite.com but when i do mysite.com/boutique (without the ending slash) i get mysite.com/var/www/mysite.com/web/ 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