這是它的外觀沒有「/」(本地主機/ index.php文件):http://postimg.org/image/jxg239qzn/添加「/」讓網站崩潰
在URL(本地主機/ index.php文件/末尾添加完後): http://postimg.org/image/e01pe0isv/
任何有經驗的人都可以給出一個簡短的提示,說明可能的原因。
這裏是index.php文件:
require_once("php/config.php");
if(substr_count($_SERVER['PHP_SELF'],'/')==1){ // fixing that bug
require_once(ROOT_PATH . "php/header.php");
if(isvalid(quizzid()) == true){
switch(quizzid()){
case 0:
require_once(ROOT_PATH . "php/questionarios.php");
break;
default:
require_once(ROOT_PATH . "php/questionario.php");
break;
}
}
require_once(ROOT_PATH . "php/footer.php"); // footer
}else{ // if there are more than 1 '/' it would redirect to > index
header('Location: /index.php');
}
請從'index.php'向我們展示您的代碼 – Rizier123 2015-02-06 09:25:41
您最有可能使用CSS文件的相對路徑更改爲絕對路徑或設置基地 – Spokey 2015-02-06 09:37:13
好的,我發佈了代碼,對於延遲抱歉,無論如何我會調查路徑類型以及如何管理它,這正是我需要的。 謝謝你的擔心。 – Vladimir 2015-02-06 09:39:18