再就是服务器或者主机上把默认主页改成“index.html”
为了能够永久的不显示,你最后还要改一下程序代码:
在www/ 跟目录下有个自带的index.php文件
原代码 为:
02 | if (isset($_GET[ 'upcache' ])) |
04 | require_once ( dirname (__FILE__) . "/include/common.inc.php" ); |
05 | require_once DEDEINC. "/arc.partview.class.php" ; |
06 | $GLOBALS[ '_arclistEnv' ] = 'index' ; |
07 | $row = $dsql->GetOne( "Select * From `dede_homepageset`" ); |
08 | $row[ 'templet' ] = MfTemplet($row[ 'templet' ]); |
10 | $pv->SetTemplet($cfg_basedir . $cfg_templets_dir . "/" . $row[ 'templet' ]); |
11 | $pv->SaveToHtml( dirname (__FILE__). '/index.html' ); |
12 | include( dirname (__FILE__). '/index.html' ); |
17 | header( 'HTTP/1.1 301 Moved Permanently' ); |
18 | header( 'Location:index.html' ); |
|
以上代码改成:
1 | require_once ( dirname (__FILE__) . "/include/common.inc.php" ); |
2 | require_once DEDEINC. "/arc.partview.class.php" ; |
3 | $GLOBALS[ '_arclistEnv' ] = 'index' ; |
4 | $row = $dsql->GetOne( "Select * From `dede_homepageset`" ); |
5 | $row[ 'templet' ] = MfTemplet($row[ 'templet' ]); |
7 | $pv->SetTemplet($cfg_basedir . $cfg_templets_dir . "/" . $row[ 'templet' ]); |
|
这样你再去看就解决问题了~~代码好难写,希望采纳