mo1977 Posted October 27, 2013 Share Posted October 27, 2013 Hi all I hope someone can help. I have made a new presta shop site and need to redirect all the old website urls to the new site. I have tried editing thing in the htaccess file but it either stops the whole site working or does nothing. is there an easy way to do this? example old site http://www.xyz.com/acatalog/* new site http://www.xyz.com Thanks Link to comment Share on other sites More sharing options...
vekia Posted October 27, 2013 Share Posted October 27, 2013 on old domain and website you can do it with htaccess 301 redirection: Options +FollowSymLinks RewriteEngine on RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L] 3 Link to comment Share on other sites More sharing options...
mo1977 Posted October 27, 2013 Author Share Posted October 27, 2013 Hi Vekia thanks for the reply, the old website is gone I am using the same domain for the new site. What I am trying to do is get all the old pages that are indexed by google to goto the new sites home page. To try to explain google has 300 pages from the old site indexed they all start www.xyz.com\acatalog\ when I click on them it takes me to the prestashop 404 page I want them to goto the new homepage. Hope that makes it more understandable. thanks Link to comment Share on other sites More sharing options...
vekia Posted October 28, 2013 Share Posted October 28, 2013 if you moved all files to root dir of your domain, then you can use the same code i mentioned above too. It will redirect all links from /catalog/ to root dir of your domain. in directory /acatalog/ create only one file: .htaccess with code that i mentioned above. 301 redirection is perfect for google robots Link to comment Share on other sites More sharing options...
mo1977 Posted October 28, 2013 Author Share Posted October 28, 2013 I did what you said but I just get the 404 page still. Am I missing something? I made the acatalog Dir I put one file in it .htaccess I put the code from above in it Please help!! Link to comment Share on other sites More sharing options...
vekia Posted October 28, 2013 Share Posted October 28, 2013 let's clarify. you created subdirectory /dir/ and created there .htaccess file too with code i mentioned above. have you changed domain address in code? can you paste url? Link to comment Share on other sites More sharing options...
mo1977 Posted October 28, 2013 Author Share Posted October 28, 2013 yes I did all that www.deltec.net is the new shop www.deltec.net/acatalog/ is what I am trying to redirect. thanks Link to comment Share on other sites More sharing options...
vekia Posted October 28, 2013 Share Posted October 28, 2013 it should work now. make sure that you used .htaccess name for file i mentioned and also make sure that your hoster allow to use .htaccess file in subdirectories (followsymlinks) Link to comment Share on other sites More sharing options...
mo1977 Posted October 28, 2013 Author Share Posted October 28, 2013 Hi this is what is in my .htaccess file @ www.deltec.net/acatalog/.htaccess Options +FollowSymLinks RewriteEngine on RewriteRule http://www.deltec.net/acatalog/ (.*) http://www.deltec.net/$1 [R=301,L] I still just get 404 page? Link to comment Share on other sites More sharing options...
Bibi94752 Posted November 4, 2013 Share Posted November 4, 2013 (edited) Thanks for info. Natural cure for diseases Edited January 12, 2016 by Bibi94752 (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted November 4, 2013 Share Posted November 4, 2013 i checked your website and it redirects well to the new one, problem solved? 1 Link to comment Share on other sites More sharing options...
dorje Posted December 4, 2013 Share Posted December 4, 2013 how to redirect the 404's to their specific categories? Link to comment Share on other sites More sharing options...
PaulJW Posted May 12, 2014 Share Posted May 12, 2014 on old domain and website you can do it with htaccess 301 redirection: Options +FollowSymLinks RewriteEngine on RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L] Thanks Vekia, this worked for me. Link to comment Share on other sites More sharing options...
Smithikakart Posted July 13, 2020 Share Posted July 13, 2020 i have moved my domain and got the url redirect issue https://smithikamobiles.in/en/headphones/127-366-philips-she1505-wired-headset-with-mic-black-in-the-ear.html#/11-color-black - oldsite url https://smithikakart.in/#/11-color-black its redirected to here same product new url is : https://smithikakart.in/headphones/127-366-philips-she1505-wired-headset-with-mic-black-in-the-ear.html#/11-color-black language en is the problem here i have shared my smithikamobiles.in domain .htaccess htaccess Link to comment Share on other sites More sharing options...
Smithikakart Posted July 14, 2020 Share Posted July 14, 2020 hey the above issue fixed after add this htaccess rule RewriteEngine on RewriteCond %{HTTP_HOST} ^smithikamobiles\.in$ [OR] RewriteCond %{HTTP_HOST} ^www\.smithikamobiles\.in$ RewriteRule ^en\/?(.*)$ "https\:\/\/smithikakart\.in\/$1" [R=301,L] Link to comment Share on other sites More sharing options...
wilson113311 Posted February 25, 2021 Share Posted February 25, 2021 Hi, I am hoping to get some help. I am struggling with redirecting my urls which I have 84 to do. 3 example are as below - tillrollsonline.co.uk/index.php?id_product=12&controller=product https://www.tillrollsthermal.co.uk/till-rolls/a-grade-paper-till-rolls/37x70mm-a-grade-till-rolls tillrollsonline.co.uk /index.php?id_product=14&controller=product https://www.tillrollsthermal.co.uk/single-ply-paper/44x70mm-a-grade-till-rolls tillrollsonline.co.uk/index.php?id_product=13&controller=product https://www.tillrollsthermal.co.uk/till-rolls/44x80-a-grade-till-rolls I am going from tillrollsonline.co.uk to tillrollsthermal.co.uk I think my problem is due to the URL having index.php in? I hope someone may be able to help me. Thank you in advance. 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