Previous Next

Thread: Problem with changing location with header

Last post 09-04-2008 1:48 PM by moscower. 0 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (1 items)

Sort Posts:

  • 09-04-2008, 1:48 PM

    • moscower
    • Not Ranked
    • Joined on 09-04-2008, 11:00 AM
    • Posts 1

    Problem with changing location with header

    Hi

    I'm trying to transfer site with php scripting from Apache to IIS and have such problem:

    Script has such code. For example in the file index.php

    <?PHP
    header("Location: /some_dir/some_file.php"); ?>

    On the Apache server this code works ok, and browser redirected on the page http://site/some_dir/some_file.php

    But on the IIS it stays on the page http://site/index.php, but loads page from /some_dir/some_file.php . Sure there are on this page other relative links, became bad.

    Is there any way to resolve it?

    Thanks

    
    										    
    									    
Page 1 of 1 (1 items)
Page view counter