PHP header redirect not working

前端 未结 13 2079
小蘑菇
小蘑菇 2020-12-05 12:00

I know this has been covered before but I cannot find an answer to this,

I have always used this;

header(\"Location: http://www.website.com/\");
exit         


        
相关标签:
13条回答
  • 2020-12-05 12:37

    What exactly happens when you visit the page? You can try Firebug or any other tool that allows you to analyze HTTP headers and check if the redirect really happens and whether the Location header is really present.

    0 讨论(0)
提交回复
热议问题