.htaccess文件中URL重寫
如下地址
http://locathost/enet/index.php 轉換成http://locathost/enet/index.html
http://locathost/enet/index.php?page=1&id=2&lb=3 轉換成http://locathost/enet/index-1-2-3.html
我寫的
RewriteRule ^enet/index.html$ enet/index.php[L]
用http://locathost/enet/可以訪問,http://locathost/enet/index.html不可以,請幫忙,謝謝。

解决方案 »

  1.   

    RewriteRule ^enet\/index\.html$ enet\/index\.php[L]试一试
      

  2.   

    RewriteRule ^enet/index\.html$ enet/index\.php[L]试一试
      

  3.   

    RewriteRule ^enet\/index\.html$ enet\/index\.php[L]试一试
    -------------------------------------------------------------謝謝,還是不可以
    用http://locathost/enet/可以訪問,http://locathost/enet/index.html提示404錯誤。