Jump to content

oscommerce to prestashop google indexed pages


bartman

Recommended Posts

working on a new design for a site,

The site is an old oscommerce site, but it very well indexed on google and has a good search ranking,

obviously when the site goes live with its new prestashop design, although the main url will remain the same all the old category and products urls are going to change

what is the best way to handle the change.

What I was planning todo is create 301 redirectw from the old oscommerce pages to the new prestashop urls in the .htaccess

Is this the correct way to handle the problem or is their a better soloution

many thanks


Chris

Link to comment
Share on other sites

  • 2 weeks later...
  • 1 year later...
RewriteEngine on

RewriteCond %{QUERY_STRING} ^products_id=([0-9]*)$
RewriteRule ^product_info\.php$ http://www.domainname.com/shop/product.php?id_product=%1 [R=301,L]

RewriteCond %{QUERY_STRING} ^manufacturers_id=[0-9]*&products;_id=([0-9]*)$
RewriteRule ^product_info\.php$ http://www.domainname.com/shop/product.php?id_product=%1 [R=301,L] 



This worked for me. First set is for redirecting http://www.domainname.com/product_info.php?products_id=123 to http://www.domainname.com/shop/product.php?id_product=123

the second is for redirecting http://www.domainname.com/product_info.php?manufacturers_id=123&products_id=123 to http://www.domainname.com/shop/product.php?id_product=123

leave out "/shop/" in RewriteRule if your shop is not in the "/shop/" subfolder or change if its in another subfolder.

Let me know how that works for you.

Best
A[/code]

Link to comment
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
×
×
  • Create New...