.htaccess redirect question

Discussion in 'Apache' started by jdr8271, Mar 19, 2012.

  1. #1
    I am trying to redirect a page on an old website to a page on a new website. I want to redirect a page such that:

    www.oldwebsite.com/page.php?id=1

    becomes

    www.newwebsite.com/page.php?id=1

    I have been searching around the internet but I have not been able to find the solution. I want to redirect just this one page, not the whole site.
     
    jdr8271, Mar 19, 2012 IP
  2. jdr8271

    jdr8271 Member

    Messages:
    209
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    28
    #2
    nevermind, I figuired it out. For anyone else out there:

    redirect 301 /page.php http://www.newsite.com/page.php

    I thought you had to do something special to bring over the query string, but apparently you do not.
     
    jdr8271, Mar 19, 2012 IP