Dede默认生成首页后,首页的链接后面会多出一个index.html。据官方说法这样有利于网站优化。
<?php
if(!file_exists(dirname(__FILE__).'/data/common.inc.php'))
{
header('Location:install/index.php');
exit();
}
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();
?>
|
以上就是织梦首页去掉index.html方法总结。一切这样清楚,但是业已分开太久。时间如水,中间仿佛有河。你过不去。车流穿梭,她,转瞬湮灭在人潮中。你回首,看见梦里花落知多少?思量,思量,焉得不思量?更多关于织梦首页去掉index.html方法总结请关注haodaima.com其它相关文章!




