Forum Moderators: phranque
It is not the number of lines that is the problem, but the processing time for each request.
With intelligent pattern creation and the use of "local OR" notation it is likely the number of lines could be significantly cut.
Consider similar URLs and look at the th(is|at) and [ct]hat logic, etc. [webmasterworld.com...]
Can someone please explain in terms that I can convey to our developer [ perhaps a bit of understanding on my part is needed ].
We are looking to redirect around 20,000 URL's / lines.
It is not the number of lines [in .htaccess] that is the problem, but the processing time for each request.
With intelligent pattern creation and the use of "local OR" notation it is likely the number of lines could be significantly cut.
RewriteRule ^oldpage1$ /newpage1 [R=301,L]
RewriteRule ^oldpage2$ /newpage2 [R=301,L]
RewriteRule ^oldpage3$ /newpage3 [R=301,L]
RewriteRule ^oldpage4$ /newpage4 [R=301,L]
RewriteRule ^oldpage5$ /newpage5 [R=301,L]
# ...for 20,000 lines!
RewriteRule ^oldpage(/d+)$ /newpage$1 [R=301,L]
RewriteCond %{REQUEST_URI} (.+)
RewriteRule (?:/|\.html)$ /fixup.php?page=%1 [L]