PHP header redirect not working

前端 未结 13 2117
小蘑菇
小蘑菇 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:19

    It may be strange solution but try this, change the page encoding from utf8 to ANSI and it will work.

    use any text editor and save the page as ANSI encoding and upload it to your online server.

提交回复
热议问题