problem whith IE9 & 301 redirect using head

Discussion in 'PHP' started by moheballah, May 1, 2011.

  1. #1
    hi,

    i have page with this code

    <?php
    
    Header("HTTP/1.1 301 Moved Permanently");
    Header("Location: $link");
    
    ?>
    PHP:
    it working fine with all browsing except IE9 i get 406 not acceptable
     
    moheballah, May 1, 2011 IP
  2. TimK

    TimK Peon

    Messages:
    51
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Try using an actual URL instead of the variable, I know IE processes headers differently than other browsers.
     
    TimK, May 1, 2011 IP
  3. lanydyzai

    lanydyzai Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Header declears first so you need real url replace for $link
     
    lanydyzai, May 1, 2011 IP