当我在浏览器中访问我的网站域时,它显示了index.php的代码。我将这个站点从旧服务器移到新的server.And,然后在我的主机file.After中设置新的服务器IP地址,访问it.But,显示coding.How,我可以这样做吗?请帮助我。
这是我的.htaccess文件
php_value error_reporting 039
php_flag display_errors On
DirectoryIndex _index.php index.php这是输出
<?php
define("NO_IFRAME_DEFINE", "defined");
// ini_set("display_errors", "1");
// error_reporting(E_ERROR);
require_once("init.php");
$mb_flg = 0;
$mb_url = $ROOT_URL."/i/";
if(isset($_SERVER['HTTP_USER_AGENT'])){
$user_agent = $_SERVER['HTTP_USER_AGENT'];
if(eregi("DoCoMo",$user_agent)){$mb_flg = 1;}
if(eregi("UP\.Browser",$user_agent)){$mb_flg = 1;}
if(eregi("J-PHONE",$user_agent)){$mb_flg = 1;}
if(eregi("Vodafone",$user_agent)){$mb_flg = 1;}
if(eregi("SoftBank",$user_agent)){$mb_flg = 1;}
if(eregi("J-EMULATOR",$user_agent)){$mb_flg = 1;}
if($mb_flg == 1){
header( "HTTP/1.1 301 Moved Permanently" );
header("Location: $mb_url");
}
}
........
?>发布于 2016-11-21 09:52:13
从现在的情况来看,我只能假设apache没有正常工作。或者PHP设置不正确。检查您的Apache和PHP configurations.Try重新启动Apache,在此之后,如果没有帮助,请尝试重新安装Apache。
https://stackoverflow.com/questions/40717120
复制相似问题