
1. 替换index.php的内容 生成动态,
<?phpif(!file_exists(dirname(__FILE__).datacommon.inc.php)){header(Location:installindex.php);exit();}require_once (dirname(__FILE__) . "includecommon.inc.php");require_once DEDEINC."arc.partview.class.php";$GLOBALS[_arclistEnv] = index;$row = $dsql->GetOne("Select * From `dede_homepageset`");$row[templet] = MfTemplet($row[templet]);$pv = new PartView();$pv->SetTemplet($cfg_basedir . $cfg_templets_dir . "" . $row[templet]);$pv->Display();?>

当然如果要生成html就不行了。
2.直接删除CMS根目下的index.php文件,这个办法看似最简单,但是我自己试过后却不成功。而且删除后也没办法使用动态浏览了。directoryindex index.html inde
3.使用.htaccess文件目前使用的是这个办法,试验成功。
方法如下:
在根目录的.htaccess里加入以下代码:
DirectoryIndex index.html index.php index.htm。directoryindex index.html inde
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/jisuanjixue/article-49851-1.html
你你可以委婉的说