久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放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)站

      ecstore如何去掉index.php

      ecstore去掉index.php的方法:首先開(kāi)啟apache服務(wù)器的rewrite模塊;然后在網(wǎng)站根目錄下建立“.htaccess”文件;接著修改本項(xiàng)目中的配置文件中的rewrite配置;最后重啟服務(wù)器即可。

      ecstore如何去掉index.php

      推薦:《PHP視頻教程》

      ECStore去掉Index.php的方法

      網(wǎng)上試了幾個(gè)方法都不行,自己鼓搗了一下,發(fā)現(xiàn)是寫(xiě)rewrite的時(shí)候,沒(méi)有添加 RewriteBase /

      方法如下:

      第一步 – 開(kāi)啟apache服務(wù)器的rewrite模塊

      1. 找到apache服務(wù)器中的httpd.conf文件

      2. 將 #LoadModule rewrite_module modules/mod_rewrite.so最前面的#去掉,開(kāi)啟這個(gè)模塊

      第二步 – 在網(wǎng)站根目錄建立 .htaccess文件

      文件內(nèi)容如下:

      RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d [OR] RewriteCond %{REQUEST_FILENAME} -l RewriteRule . - [NC,L] RewriteRule . index.php [NC,L]

      備注:windows下不能直接建立.htaccess文件,可以通過(guò)文本編輯器建立后保存

      第三步 – 修改本項(xiàng)目中的配置文件中的rewrite配置

      找到

      config/compatible.php(or config/config.php)這個(gè)文件的第38行左右(找不到就查找文件中的字符串:Rewrite),

      更改

      define('WITH_REWRITE', false);

      define('WITH_REWRITE', true);

      第四步 – 重啟服務(wù)器。

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