我試圖在XAMPP使用頭位置重定向頁面,但它不工作,並重定向到localhost /儀表板PHP標題位置在localhost xampp中不起作用?
我用於本地主機簡單的變向下面的代碼,我把我的網站的htdocs /測試/和該文件是index.html和index.php文件,在index.php代碼如下
<?php
header("Location:/index.html");
?>
,當我試圖訪問http://localhost/test/index.php它是不會到localhost /測試/ index.html的 但重定向到http://localhost/dashboard/
你有
不,我沒有任何空間 –
檢查此鏈接它我的幫助http://stackoverflow.com/questions/11072042/headerlocation-redirect-works-on-localhost-but-not-on-remote-server –