301 Redirect with multiple paramater and doc type change

Discussion in 'Site & Server Administration' started by cesarcesar, Aug 12, 2009.

  1. #1
    Hi all, I hope someone can help me here. I'm trying to do a 301 from/to the following urls. I will post what i have that is not working as well. Thanks much.

    From
    /store/cart/index.php?page=2&prod_id=4&category=20
    Code (markup):
    To
    /products/blue/widgets/2.html
    Code (markup):
    My not working code
    
    RewriteCond %{QUERY_STRING} ^page=2&prod_id=4&category=20$
    RewriteRule ^store/cart/index\.php$ http://www.site.com/products/blue/widgets/2.html? [R=301,L]
    
    Code (markup):

     
    Last edited: Aug 12, 2009
    cesarcesar, Aug 12, 2009 IP
  2. miles2go

    miles2go Peon

    Messages:
    567
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    thanks for the code its hard to find the correct one.
     
    miles2go, Aug 12, 2009 IP