« Previous Next »

Thread: PHP fastcgi/II7 changes 301 to 302 Status-code, why? RESOLVED

Last post 07-20-2009 1:07 PM by ruslany. 1 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (2 items)

Sort Posts:

  • 07-17-2009, 5:29 PM

    PHP fastcgi/II7 changes 301 to 302 Status-code, why? RESOLVED

    Very basic code running by itself such as this:

    <?php
    header( "HTTP/1.1 301 Moved Permanently" );
    header("Location: http://www.microsoft.com/");
    ?>

    Is being changed to "302 Moved Temporarily" automatically somehow. 

    This problem is only happening on windows server 2008 / ii7 / php 5.3 or 5.3.1-dev.  I was able to fix the problem with 5.3.1-dev windows development snapshot on Vista & Server 2003, but on windows server 2008, doesn't work.

    Note: I was able to fix the problem by not using fastcgi.  I had to go back to php 5.2.1 since 5.3 doesn't include php5isapi.dll and it works now.  Hope this helps someone.

  • 07-20-2009, 1:07 PM In reply to

    • ruslany
    • Top 25 Contributor
    • Joined on 07-01-2007, 7:38 PM
    • Redmond, WA
    • Posts 661

    Re: PHP fastcgi/II7 changes 301 to 302 Status-code, why? RESOLVED

    This is caused by a bug in FastCGI module (http://forums.iis.net/p/1158431/1907156.aspx). IIS team is working on providing a fix for that.

    http://ruslany.net
Page 1 of 1 (2 items)
Microsoft Communities