亚洲免费乱码视频,日韩 欧美 国产 动漫 一区,97在线观看免费视频播国产,中文字幕亚洲图片

      1. <legend id="ppnor"></legend>

      2. 
        
        <sup id="ppnor"><input id="ppnor"></input></sup>
        <s id="ppnor"></s>

        dedecms織夢(mèng)程序首頁如何去除index.html

        字號(hào):


            dedecms織夢(mèng)cms建站程序用戶會(huì)發(fā)現(xiàn),輸入地址后,而打開的實(shí)際地址后面有個(gè)index.html,下面飛花如夢(mèng)就和大家一起分享下這個(gè)問題的兩種解決方法:
            1、把網(wǎng)站默認(rèn)首頁index.html放到index.php前面,這樣它自動(dòng)讀到index.html就不會(huì)跳轉(zhuǎn)了
            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 `); $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(); ?>
            <?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 `);
            $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();
            ?>
            其實(shí)主要就是把那段301定向代碼刪除
            header(‘http/1.1 301 moved permanently’);
            header(‘location:index.html’);
            以上兩種方法絕對(duì)能解決dedecms首頁地址不帶index.html。