René H4 Posted February 24, 2018 Share Posted February 24, 2018 Hi, After Whitehat has build my new shopsuccesfully, I like to redirect my customers from the old shop to the new one. The old location is http://shop.honda4.nl/catalog The new location is https://www.honda4shop.nl Any link or bookmark that is clicked should direct to the new shop. What is the best way to do this? Cheers, Rene Link to comment Share on other sites More sharing options...
MrPhil Posted February 26, 2018 Share Posted February 26, 2018 Are the product directories and SEO the same in both shops, and you want to redirect to the same place in the new shop, or do you just want to go to the main page of the new shop? What was the old version of osC, and what is the new one (Edge, I hope)? By the way, I recommend against putting a store (or any major application) in the site root. That's asking for trouble. It should be under /catalog or /store. That way, in the future, you can install other applications (like a blog or gallery) without the store's .htaccess interfering with their operations. Link to comment Share on other sites More sharing options...
René H4 Posted February 26, 2018 Author Share Posted February 26, 2018 Hi Phil, As to the redirection: All paths have remained the same, except for the http prefix. So http://shop.honda4.nl/catalog/ANYTHING should be redirected to https://www.honda4shop.nl/ANYTHING. I was running RC2a and am now running the Bootstrap. The datebase was imported from one shop to the other. As for the directory: We have put this into the root because I have no intention of putting anything elso on that page. Thanks for your help... ;-) Link to comment Share on other sites More sharing options...
♥raiwa Posted February 26, 2018 Share Posted February 26, 2018 18 minutes ago, honda4 said: As to the redirection: All paths have remained the same, except for the http prefix. So http://shop.honda4.nl/catalog/ANYTHING should be redirected to https://www.honda4shop.nl/ANYTHING. You'll find several examples how to add a rewrite rule to .htaccess here: https://stackoverflow.com/questions/4083221/how-to-redirect-all-http-requests-to-https About Me: http://www.oscommerce.com/forums/user/249059-raiwa/ Need help? How To Get The Help You Need Is your version of osC up to date? You'll find the latest osC community version CE Phoenix here. Public Phoenix Change Log Cheat Set on Google Sheets Link to comment Share on other sites More sharing options...
MrPhil Posted February 26, 2018 Share Posted February 26, 2018 Replace shop.honda4.nl's /.htaccess with RewriteEngine On RewriteRule ^catalog/?(.*)$ https://www.honda4shop.nl/$1 [R=301,L] This is assuming an Apache server, or one that processes .htaccess and can do URL redirection. Link to comment Share on other sites More sharing options...
René H4 Posted February 26, 2018 Author Share Posted February 26, 2018 Hurray, that worked! Thanks Phil. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.