15,000 redirects casing huge htaccess file

Discussion in 'Google' started by cesarcesar, Aug 12, 2009.

  1. #1
    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.

    
    RewriteCond %{QUERY_STRING} ^page=2prod_id=4&category=20$
    RewriteRule ^store/cart/index\.php$ **********/products/blue/widgets/2.html? [R=301,L]
    
    Code (markup):
    Replace ********* with a valid http url.
     
    cesarcesar, Aug 12, 2009 IP
  2. Ceara_Elise

    Ceara_Elise Peon

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I'm not sure if this is the right forum for this, but have you thought of doing a database or something?
     
    Ceara_Elise, Aug 12, 2009 IP
  3. cesarcesar

    cesarcesar Peon

    Messages:
    188
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    there is a database. i have to 301 all the old dynamic pages.
     
    cesarcesar, Aug 12, 2009 IP