301 Redirect Issue

Discussion in 'Programming' started by d29, Aug 31, 2006.

  1. #1
    Hello,
    I'm using this in .htaccess to redirect a page to another as I've redesigned the site:

    
    Redirect 301 /oldpage.php http://www.website.com/newpage.php
    
    Code (markup):
    The problem is that the redirect passes the old page as a variable in the URL and it actually redirects to http://www.website.com/newpage.php?q=oldpage.php.

    How do I stop this? I just want it to be redirected to website.com/newpage.php and that's it. No passed variables.
     
    d29, Aug 31, 2006 IP
  2. theblade24

    theblade24 Active Member

    Messages:
    84
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    73
    #2
    theblade24, Aug 31, 2006 IP
  3. d29

    d29 Active Member

    Messages:
    89
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    93
    #3
    It's still passing the variable.

    I went and edited all the old files to add PHP redirects and gave up on this.

    Desipte that, I'd still be interested in hearing of a solution to this.

    Thanks for you help,
    David
     
    d29, Aug 31, 2006 IP