Zen Cart Logo
Forums / General Questions / Redirecting OSC cart to new Zen

Redirecting OSC cart to new Zen

Locked

Views: 1,751

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
18 Jul 2006, 11:06 PM
#1
cuda avatar

cuda

Zen Follower

Join Date:
Jul 2006
Posts:
119
Plugin Contributions:
0

Redirecting OSC cart to new Zen

I am upgrading my clients OSC cart to Zen. What I am wondering is if any one knows the best way to redirect the old products that show up in search results in the osc cart to the new zen cart product listings? Thanks

19 Jul 2006, 3:51 AM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Redirecting OSC cart to new Zen

I tossed this my Zen Cart directory in a file called product_info.php ...

<?php
// osc to Zen Cart redirect
// $Id: product_info.php 1591 2005-07-15 19:57:46Z ajeh $
//

  $_GET['action'] = '';
  $_GET['main_page'] = 'product_info';
  require('includes/application_top.php');

  $destination = str_replace('&','&',zen_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $_GET['products_id']));
  // the 301 in this header() command tells a spider/browser to re-learn the URL (301=Moved Permanently)
  header('Location: ' . $destination, true, 301);

?>

That should handle products ... or send them to the missing product page in your Zen Cart site ...

20 Jul 2006, 1:47 PM
#3
cuda avatar

cuda

Zen Follower

Join Date:
Jul 2006
Posts:
119
Plugin Contributions:
0

Re: Redirecting OSC cart to new Zen

Thanks Ajeh I think that will work fine when I swap it over.

Thanks! :thumbsup: