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

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

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

        解決codeigniter偽靜態(tài)失效

        字號(hào):


            原來(lái)地址:http://127.0.0.1/onsite/index.php/welcome/index/abc123
            修改后地址:http://127.0.0.1/onsite/abc123.html
            代碼如下:
            <ifmodule mod_rewrite.c>
            rewriteengine on
            rewritebase /onsite
            rewritecond %{request_uri} ^system.*
            rewriterule ^(.*)$ /index.php?/$1 [l]
            rewritecond %{request_uri} ^application.*
            rewriterule ^(.*)$ /index.php?/$1 [l]
            rewritecond %{request_filename} !-f
            rewritecond %{request_filename} !-d
            rewriterule ^(.*)\.html$ index.php/welcome/index/$1 [l]
            </ifmodule>
            規(guī)則是沒(méi)有錯(cuò)的,但萬(wàn)想不到codeigniter竟然報(bào)404找不到頁(yè)面;經(jīng)過(guò)測(cè)試在根目錄建立同名的html文件是能夠正常顯示的;
            那問(wèn)題應(yīng)該是ci的配置導(dǎo)致的;經(jīng)過(guò)一番波折,發(fā)現(xiàn)一個(gè)參數(shù):
            代碼如下:
            $config['uri_protocol'] = 'auto';
            把它改成:
            代碼如下:
            $config['uri_protocol'] = 'path_info';
            頁(yè)面終于顯示正常了;