The Most Active and Friendliest
Affiliate Marketing Community Online!

“Adavice”/  “1Win

15,000 redirects casing huge htaccess file

cesarcesar

New Member
affiliate
I have to 301 Redirect 15000+ pages. This makes my htaccess file size 4+ Meg. How can I change my mod rewrites to do some pattern checking or something to bring my file size down. I have urls with 2-3-4 parameters.

Code:
RewriteCond %{QUERY_STRING} ^page=2prod_id=4&category=20$
RewriteRule ^store/cart/index\.php$ **********/products/blue/widgets/2.html? [R=301,L]

Replace ********* with a valid http url.
 
I'm not an htaccess expert, but I know you can write rules to deal with more than one url. If the 15,000 urls use an identical pattern then one rule could handle them all.

I'd recommend looking for an htaccess or Apache forum and posting there, or you could try the official site - httpd<dot>apache<dot>org/docs/1.3/howto/htaccess<dot>html
 
MI
Back