Moving oscommerce to zen and possible issues
I am moving from oscommerce to zencart this weekend. I am well listed in google in terms of the amount of pages they have listed, and I get a lot of traffic from them.
I've got my zencart in /zen and my oscommerce in /store. I was going to simply change zen's name to store and rename /store to something else, but I have concerns....
Is there something I have to do to ensure no 404's when someone goes to a product page from google. The urls won't be exactly alike since I have cDynamicMetatags and Ultimate SEO Urls installed in the oscommerce cart...I know it will take some time for google to change the urls from the sitemap I ping them with on Sunday.
Any feedback will be appreciated. Also, any ideas on things I may be missing in terms of being aware of with this migration.
Re: Moving oscommerce to zen and possible issues
Ultimate SEO does have a version for Zen, Im not sure about cDynamicMetatags though
Re: Moving oscommerce to zen and possible issues
I posted this today http://www.zen-cart.com/forum/showthread.php?t=105805
It might help you out but you need to setup each inbound link and then redirect it to the new product link.
Skip
Re: Moving oscommerce to zen and possible issues
Thanks for your imput!
The setting of each url with a redirect is near impossible. I've got 2755 products in my store and I'll end up in a coma if I try that! :flex:
Re: Moving oscommerce to zen and possible issues
Quote:
Originally Posted by
webbydeb
Thanks for your imput!
The setting of each url with a redirect is near impossible. I've got 2755 products in my store and I'll end up in a coma if I try that! :flex:
Yes I totally agree that is not for your quantity.
I have used this method of redirect on some old osc to zen sites.
By placing this file in the store root.
PHP Code:
<?php
// product_info.php
// osc direct product link convert to zen-cart product link
// this assumes that the product ids did not change form osc to zen
header('HTTP/1.1 301 Moved Permanently');
header('Location: http://www.mysite.com/index.php?main_page=product_info&products_id=' . basename($_SERVER['REQUEST_URI']));
?>
Skip
Re: Moving oscommerce to zen and possible issues
Do I add this code to a certain file? index.php? Or is it a file on it's own?
Re: Moving oscommerce to zen and possible issues
It is a file on its own.
osc used product_info.php file to get products
Not like zen cart index.php?main_page=product_info
Re: Moving oscommerce to zen and possible issues
Quote:
Originally Posted by
skipwater
It is a file on its own.
osc used product_info.php file to get products
Not like zen cart index.php?main_page=product_info
gotcha, thanks! Fingers crossed!
Re: Moving oscommerce to zen and possible issues
Any particular reason why you are running your store from a sub-directory?
If NO, then install Zen Cart at the root level then put this in your .htaccess file.
Code:
RewriteEngine ON
RewriteRule store/.*(.*) http://yoursite.com/
That will redirect all requests to the old pages to your Home page.
Or you could create a specific Web page detailing what was done and use:
Code:
RewriteEngine ON
RewriteRule store/.*(.*) http://yoursite.com/site-updated.htm
Re: Moving oscommerce to zen and possible issues
My store is an adult store with some images not appropriate to minors, so I have the entrance with that info and that they must be 18+ to enter. Covers my ######## and keeps some out who shouldn't be there.
Re: Moving oscommerce to zen and possible issues
OSCs version puts hyphens between the name, ZEN doesn't.
Re: Moving oscommerce to zen and possible issues
Quote:
Originally Posted by
webbydeb
OSCs version puts hyphens between the name, ZEN doesn't.
I believe Ultimate Seo can automatically redirect from old name to new name?
Re: Moving oscommerce to zen and possible issues
How would it know the old name though....
Re: Moving oscommerce to zen and possible issues
It only cares about the product/category ids in the url, not the names. So if the ids stay the same, it will know.
Re: Moving oscommerce to zen and possible issues
That's a relief...funny, I thought I posted this response. Must have forgotton to take my meds!
:clap:
Re: Moving oscommerce to zen and possible issues
Yup, you have to turn on force redirect or something in the admin setting. And Im not exactly sure it's in version 2.x or 3.x (either one, forgive me since I used this module only once long long ago)
Quote:
Originally Posted by
webbydeb
That's a relief...funny, I thought I posted this response. Must have forgotton to take my meds!
:clap:
Re: Moving oscommerce to zen and possible issues
It's working by the way. URLs are exactly the same...I'm so psyched!:yes: Great mod!
Re: Moving oscommerce to zen and possible issues
I've got this mod almost to work.
Quote:
Originally Posted by
skipwater
PHP Code:
<?php
// product_info.php
// osc direct product link convert to zen-cart product link
// this assumes that the product ids did not change form osc to zen
header('HTTP/1.1 301 Moved Permanently');
header('Location: http://www.mysite.com/index.php?main_page=product_info&products_id=' . basename($_SERVER['REQUEST_URI']));
?>
Skip
My osc url is:
http://www.mysite.co.uk/catalog/prod...roducts_id=882
and it redirected to:
http://www.newsite.co.uk/catalog/ind...s_id=dcfdcd882
Somehow it added dcfdcd to the product_id otherwise it work.
Any idea of how to solve this?
Re: Moving oscommerce to zen and possible issues
I just spent all day finding this. This product_info.php redirects properly when migrating from OSC to zen
http://www.zen-cart.com/forum/showthread.php?t=41281