301 Redirect Dymanic URL - Need Help

Discussion in 'Apache' started by slasher20, Oct 8, 2007.

  1. #1
    I am trying to redirect a few URLs from a dynamic shopping cart. I am only looking to redirect a few of the thousands of total URLs right now because the web designer setup a few static pages.

    The URLs that I am trying to redirect look like so...

    http://www.site.com/wecs.php?store=name&action=category_view&target=1&usetemplate=default_cat

    Final destination would look like so...

    http://www.site.com/category-name/

    What would be the proper way to 301 these few URLs?

    Thanks in advance for your help.
     
    slasher20, Oct 8, 2007 IP
  2. powerspike

    powerspike Peon

    Messages:
    312
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #2
    RewriteRule ^wecs.php?store=name&action=category_view&target=(.*)&usetemplate=default_cat$ http://www.site.com/$1 [R=301,L]

    try that ..
     
    powerspike, Oct 9, 2007 IP