dedecms織夢(mèng)首頁(yè)去除index.html的方法,DEDE技術(shù)
導(dǎo)讀:DEDE技術(shù)[織夢(mèng)模板下載標(biāo)簽:摘要]
本文介紹了dedecms中去除首頁(yè)index.html的方法,有需要的朋友參考下。
dedecms織夢(mèng)cms建站程序輸入地址后,而打開(kāi)的實(shí)際地址后面有個(gè)index.html。 這里分享下兩種解決方法: 1、把網(wǎng)站默認(rèn)首頁(yè)index.html放到index.php前面,即配置好默認(rèn)首頁(yè)即可解決。 2、把dedecms的index.php更改為 代碼示例: <?php //自動(dòng)生成html版 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 = n織夢(mèng)的模板e(cuò)w partview(); $pv->settemplet($cfg_basedir . $cfg_templets_dir . "/" . $row['templet']); $pv->savetohtml(dirname(__file__).'/index.html'); include(dirn免費(fèi)織夢(mèng)模板ame(__file__).'/index.html'); exit(); ?> 就是把那段301定向代碼刪除: header(‘http/1.1 301 moved permanently’); header(‘location:index.html’); 以上二種方法,均可實(shí)現(xiàn)dedecms首頁(yè)地址不帶index.html,大家參考用之。 相關(guān)織夢(mèng)后臺(tái)模板dede免費(fèi)模板。聲明: 本文由我的SEOUC技術(shù)文章主頁(yè)發(fā)布于:2023-07-20 ,文章dedecms織夢(mèng)首頁(yè)去除index.html的方法,DEDE技術(shù)主要講述首頁(yè),標(biāo)簽,織夢(mèng)網(wǎng)站建設(shè)源碼以及服務(wù)器配置搭建相關(guān)技術(shù)文章。轉(zhuǎn)載請(qǐng)保留鏈接: http://www.bifwcx.com/article/web_31203.html
為你推薦與dedecms織夢(mèng)首頁(yè)去除index.html的方法,DEDE技術(shù)相關(guān)的文章
-
DedeCMS站點(diǎn)高級(jí)安全策略(Linux篇),織夢(mèng)教程
(105)人喜歡 2023-07-20 -
織夢(mèng)DEDECMS中讓近三天發(fā)布的文章顯示紅色
(194)人喜歡 2023-07-20 -
dedecms網(wǎng)站搬家需要的備份的文件,dedecms
(51)人喜歡 2023-07-20 -
織夢(mèng)(dedecms)導(dǎo)航條dropdown.js的改進(jìn)(附演示
(98)人喜歡 2023-07-20 -
解決Dedecms生成RSS地圖地址出錯(cuò)全都多了一
(139)人喜歡 2023-07-20 -
dede調(diào)用指定欄目下相關(guān)文章的實(shí)現(xiàn)方法
(123)人喜歡 2023-07-20