Forums / General Questions / Best way to redirect from old oscommerce store to new zen store?

Best way to redirect from old oscommerce store to new zen store?

Locked

Started by ts232 on 15 Oct 2006, 12:52 PM · Views: 7,115

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
15 Oct 2006, 12:52 PM
#1
ts232 avatar

ts232

Zen Follower

Join Date:
May 2006
Posts:
167
Plugin Contributions:
0

Best way to redirect from old oscommerce store to new zen store?

I used to run an old oscommerce site, and switched to zen about 5 months ago. I had kept the old site around for awhile with the catalog viewable but payment systems closed, along with a notice telling people to click "HERE" to move to the new site.

By now however I would like to completely phase out the old store. What is the best way to have those legacy links out there pointing to the old store redirect to the new store? They are on the same hosting system (camelot), old store in https://www.xyz.com/store and new store in https://www.xyz.com/shop

Any suggestions greatly appreciated. TIA!

--
Author of Stock vs. Sales Report

15 Oct 2006, 1:30 PM
#2
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Best way to redirect from old oscommerce store to new zen store?

Via an .htaccess file in domain you are forwarding from i.e.

Redirect /OldDir/OldFile.html [url]http://www.domainname.com/NewDir/NewFile.html[/url]

Configure your domains to suit above code
:smile:

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

15 Oct 2006, 3:37 PM
#3
ts232 avatar

ts232

Zen Follower

Join Date:
May 2006
Posts:
167
Plugin Contributions:
0

Re: Best way to redirect from old oscommerce store to new zen store?

misty:

Via an .htaccess file in domain you are forwarding from i.e.

Redirect /OldDir/OldFile.html [url]http://www.domainname.com/NewDir/NewFile.html[/url]

> Configure your domains to suit above code
> :smile:

Cool.  That works for .htm files, but what about the index.php?... urls?  Should I just do:

Redirect /OldDir/index.php [url]http://www.domainname.com/NewDir/index.php[/url]

--
Author of Stock vs. Sales Report

15 Oct 2006, 4:32 PM
#4
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Best way to redirect from old oscommerce store to new zen store?

what about the index.php?...
As you have quoted should be fine
:wink2:

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

15 Oct 2006, 9:25 PM
#5
ts232 avatar

ts232

Zen Follower

Join Date:
May 2006
Posts:
167
Plugin Contributions:
0

Re: Best way to redirect from old oscommerce store to new zen store?

misty:

As you have quoted should be fine
:wink2:

OK. Thanks a bunch for all of the suggestions, which NEARLY do everything that I want. I have a few hot products on the old site that I would like to redirect to specific product pages on the new site, for example:

http://www.foo.com/store/product_info.php?products_id=49

to

http://www.foo.com/shop/index.php?main_page=index&cPath=6

Is there away I can do these mappings of the stuff after the "?"

--
Author of Stock vs. Sales Report

15 Oct 2006, 9:43 PM
#6
rapid564 avatar

rapid564

New Zenner

Join Date:
Sep 2006
Posts:
16
Plugin Contributions:
0

Re: Best way to redirect from old oscommerce store to new zen store?

I you want to completely get rid of the old site you can create a index.php in your old store root directory and place the the following code on top of the index.php file before any html code.

<?PHP header('Location: http://www.xyz.com/shop'); ?>

so whenever your customer visit the old link https://www.xyz.com/store, it will redirect them to the new store https://www.xyz.com/shop.

24 Oct 2006, 2:15 AM
#7
dinki avatar

dinki

Zen Follower

Join Date:
Oct 2006
Posts:
206
Plugin Contributions:
0

Re: Best way to redirect from old oscommerce store to new zen store?

I'm in the process of moving my OSC cart to Zen Cart. I, too, would like to keep my inbound links to products while the new site is spidered. I think the URL's can be routed from the old OSC format to the new Zen Cart locations using mod_rewrite. I've only read about mod_rewrite and am curious if anyone has used this to handle routing of old links?

Visit my Decal website: DecalDepot.net