.htaccess 301 redirect help

Discussion in 'Apache' started by krishmk, Nov 19, 2009.

  1. #1
    We currently changed our site structure from dynamic links to seo friendly links.
    However we have some old link structure (dynamic ones) indexed by search engines.

    We would like to give a 301 redirect for those urls to the respective new url.

    So here is our old link structure:
    http://mysite.com/folder/process.php?param1=one&param2=two&param3=three

    We would like this redirected to
    http://mysite.com/prefix-three.html

    [We currently need to grab the value of third parameter only. Also this needs to match any value for param1 and param2]
    Would really appreciate your help....
     
    krishmk, Nov 19, 2009 IP
  2. reagent

    reagent Active Member

    Messages:
    95
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    68
    #2
    I could suggest something like ^.+param3=(\w+).*$ /prefix-$1\.html [R=301] and so on for other params.
     
    reagent, Nov 19, 2009 IP