国产精品成人VA在线观看,亚洲日韩在线中文字幕综合,亚洲AV电影天堂男人的天堂,久久人人爽人人爽人人av东京热

News新聞

業(yè)界新聞動(dòng)態(tài)、技術(shù)前沿
Who are we?

您的位置:首頁      樂道系統(tǒng)FAQ      去掉織夢建站或者仿站時(shí)首頁訪問地址后的index.html

去掉織夢建站或者仿站時(shí)首頁訪問地址后的index.html

標(biāo)簽: 發(fā)布日期:2014-02-20 00:00:00 1186

很多朋友在使用織夢建站或者仿站時(shí)都會(huì)發(fā)現(xiàn),在訪問首頁時(shí)后面都會(huì)添加上index.html 

現(xiàn)在我就把這解決辦法分享出來,大家可以試一試,看有沒有用 
 

復(fù)制代碼
代碼如下:

在www/ 跟目錄下有個(gè)自帶的index.php文件 
原代碼 
//自動(dòng)生成HTML版 
if(isset($_GET['upcache'])) 

require_once (dirname(__FILE__) . "/include/common.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->SaveToHtml(dirname(__FILE__).'/index.html'); 
include(dirname(__FILE__).'/index.html'); 
exit(); 

else 

header('HTTP/1.1 301 Moved Permanently'); 
header('Location:index.html'); 

?> 


把上面的代碼替換為 
 

復(fù)制代碼
代碼如下:

require_once (dirname(__FILE__) . "/include/common.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(); 
?> 


然后就可以了