这是它的外观没有“/”(本地主机/ 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