久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長(zhǎng)資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      url index.php 怎么去掉

      去掉url index.php的方法:首先啟用mod_rewrite;然后創(chuàng)建htaccess文件,添加內(nèi)容為“RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]”即可。

      url index.php 怎么去掉

      本文操作環(huán)境:windows7系統(tǒng)、PHP7.1版,DELL G3電腦

      移除 URL 中的 index.php

      默認(rèn)情況下,你的 URL 中會(huì)包含 index.php 文件:

      步驟:

      1:?jiǎn)⒂胢od_rewrite:在Apache下找到conf下的httpd.conf文件,去掉:LoadModule rewrite_module modules/mod_rewrite.so前面的“#”符號(hào);

      2:在 根目錄下的.htaccess文件中添加如下內(nèi)容,如果沒(méi)有.htaccess文件,那么就手動(dòng)創(chuàng)建一個(gè)文件。

      <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L] </IfModule>

      如果在Codeigniter根目錄下你添加了例如:css,js等文件夾,則要加上一句,如:

      <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteCond $1 !^(index.php|images|css|robots.txt)  RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L] </IfModule>

      【推薦學(xué)習(xí):PHP視頻教程】

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號(hào)-2    滬公網(wǎng)安備31011702889846號(hào)