Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Redirecting from old to new page


René H4

Recommended Posts

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

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

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

Link to comment
Share on other sites

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...