Zen Cart Logo
Forums / General Questions / Page Redirects

Page Redirects

Locked

Views: 1,510

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
26 Mar 2008, 6:38 PM
#1
andy avatar

andy

Zen Follower

Join Date:
Feb 2004
Posts:
162
Plugin Contributions:
0

Page Redirects

We are about to take our new site live soon, but we are going to change the cuerrent director structure from https://www.website.com/zen-cart-v1.1.3/ to https://www.website.com/shop/ is there a way to catch all the customers who have bookmarked the old site and send them to the new url?

Ive played with htaccess files, but cant get it to work well enough

thanks

Andy

26 Mar 2008, 6:49 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Page Redirects

You did not post your htaccess attempt but this format should take care of this

RewriteEngine on
RewriteCond %{HTTP_HOST} !^www.maindomain.com/zen-cart-v1.1.3/$
RewriteRule ^(.*)$ http://www.maindomain.com/shop/$1 [R=301]
26 Mar 2008, 7:15 PM
#3
andy avatar

andy

Zen Follower

Join Date:
Feb 2004
Posts:
162
Plugin Contributions:
0

Re: Page Redirects

thanks

i guess i only change https://www.maindomin.com to our domain?

Andy

26 Mar 2008, 7:31 PM
#4
kim avatar

kim

Obaa-san

Join Date:
Jun 2003
Posts:
26,593
Plugin Contributions:
0

Re: Page Redirects

Are you really using Zen Cart version 1.1.3?

26 Mar 2008, 7:38 PM
#5
andy avatar

andy

Zen Follower

Join Date:
Feb 2004
Posts:
162
Plugin Contributions:
0

Re: Page Redirects

no, its just how long ago we started using it, and kept the dir structure, which is why we are changing it with the re worked website, the current version is 1.3.7

Andy

26 Mar 2008, 7:52 PM
#6
kim avatar

kim

Obaa-san

Join Date:
Jun 2003
Posts:
26,593
Plugin Contributions:
0

Re: Page Redirects

Whew! :smile: May I suggest you rename the directory to catalog or something innocuous - very easy to do - then just change your 2 config files to match.

26 Mar 2008, 8:00 PM
#7
andy avatar

andy

Zen Follower

Join Date:
Feb 2004
Posts:
162
Plugin Contributions:
0

Re: Page Redirects

hi
yes we are going to do just that, but dont want the 404 error page not found, from bookmarked pages, so will use the code kobra posted to achieve this

thanks

Andy