Jump to content
Latest News: (loading..)
honda4

Redirecting from old to new page

Recommended Posts

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


Not too experienced, but very willing to learn.

Share this post


Link to post
Share on other sites

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.


If you are running the "official" osC 2.3.4 or 2.3.4.1 download, your installation is obsolete! Get the latest community-supported responsive "Edge" release

Share this post


Link to post
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... ;-)

 

 


Not too experienced, but very willing to learn.

Share this post


Link to post
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

Share this post


Link to post
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.


If you are running the "official" osC 2.3.4 or 2.3.4.1 download, your installation is obsolete! Get the latest community-supported responsive "Edge" release

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×