Forum Moderators: phranque

Message Too Old, No Replies

is there a maximum of 301 redirects

         

tuffy

7:10 pm on May 5, 2009 (gmt 0)

10+ Year Member



have aprox. 50k, dynamic pages in the format of www.mysite.com/product.php?part=1 that i want to permanently redirect to their static siblings in format of www.mysite.com/product-part-1.php.

my question: is there a maximum number of 301 redirects that can be placed in .htaccess ?

my concern is that googlebot pulls both dynamic and static & would prefer to not have duplicate pages.

any insight would be helpful.

thanks,

g1smd

11:27 pm on May 5, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



There is no limit, though a very large number of rules might impede server efficiency.

If there is a "simple relationship" between the two URLs, then you might only need *one* rule.

RewriteRule allows you to do a lot more than Redirect or RedirectMatch.

Any rule should also fix the domain canonicalisation issues within the same rule.

tuffy

2:59 pm on May 6, 2009 (gmt 0)

10+ Year Member



g1smd - thanks for the response. unfortunately, there is not a "simple relationship" between the two urls.

g1smd

5:43 pm on May 6, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Rewrite all "old" requests to a script. Have the script look up the new URL in a database and force the redirect.

[webmasterworld.com...]

[edited by: engine at 8:32 am (utc) on Oct 11, 2012]
[edit reason] added link as requested [/edit]