mod rewrite

Discussion in 'Site & Server Administration' started by martinsbca, Feb 26, 2007.

  1. #1
    I am trying to do redirect from ?link1Page=330 to mysite.com

    I tried "Redirect permanent /?link1Page=330 http://www.mysite.com/", but it is not working.

    Any ideas?
     
    martinsbca, Feb 26, 2007 IP
  2. tespio

    tespio Peon

    Messages:
    16
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Options +FollowSymLinks
    RewriteEngine On
    RewriteCond %{REQUEST_URI} ^/?link1Page=330
    RewriteRule .* [u rl]http://www. mysite. com/[/u rl] [R=301,L]
    Code (markup):
    Hopefully i made this right. I usually do not use Apache'd mod_rewrite but php's capabilities of doing the same. I hope it's helping you and working ;)

    PS: again forums dot digitalpoint dot com is n ot allowing me to post "links" so delete the space before mysite and com. Also spaces in the brackets where i had to make it u rl and /u rl


    Regards
    Andy
     
    tespio, Feb 26, 2007 IP