Is there a way to dynamicly lookup old urls and redirect to a new url using php and MySQL.
Here is the problem:
With the advice of an seo specialist. my client has changed the short link style used in MM4 to a new format.
domain.com/product_OR_categorycode.html has become
domain.com/productcode_categorycode.html
In most cases the category codes have change to something more seo friendly and many of the product codes have also changed as well.
To make this work they did 301 redirects in the htaccess file... 25000 times.
Since htaccess gets parced for each server request (including pages, images, css and javascript files) Thir site has take a very visible performance hit.
It would seem their must be a way to do dynamicly lookup the old code(s) and redirect to a new url using php and MySQL.
Any Ideas?
Here is the problem:
With the advice of an seo specialist. my client has changed the short link style used in MM4 to a new format.
domain.com/product_OR_categorycode.html has become
domain.com/productcode_categorycode.html
In most cases the category codes have change to something more seo friendly and many of the product codes have also changed as well.
To make this work they did 301 redirects in the htaccess file... 25000 times.
Since htaccess gets parced for each server request (including pages, images, css and javascript files) Thir site has take a very visible performance hit.
It would seem their must be a way to do dynamicly lookup the old code(s) and redirect to a new url using php and MySQL.
Any Ideas?
Comment