Forum Moderators: phranque
Im looking for some advice/help with creating 301 redirect rules. We currently have over 1,500 pieces of content on our site and would like to avoid creating tens of thousands of 301 redirect commands (each content can be linked from up to 15 topics pages).
Unfortunately it looks like whenever a new piece of content is created, many variations of URLs are created for that single piece of content.
Here is an example.
When a piece of content appears on the homepage:
[website.com...]
When a piece of content is referenced from a topic page:
[website.com...]
When a piece of content is referenced from the Author Page:
[website.com...]
there are about 6 other ways that URLs are created, based on where they appear on the site.
So, my question is: Is it possible to write 301 redirect formulas that identify which "type" of URL is being requested and the variables within the URL, then redirect to the new URL format for that piece of content?
It looks like our URLs have a few variables:
vendor
category
ID
title
All your help is greatly appreciated,
-=Vin
The tradeoff is that it is pretty intensive with db calls and might not be appropriate for a heavily trafficed site.
With 1500 pages of content you can figure on a day or two to get things configured the first time. I have had good luck with it, but your mileage may vary.