我包括代碼,使URL工作和沒有.php
。我包括下面寫的代碼文件夾無法加載,同時使URL和.php工作
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.php [NC,L]
現在的URL工作與不.php
。對於例如如果我們把http://www.test.com/test.php或http://www.test.com/test都起作用。但問題是文件夾無法加載。對於例如http://www.test.com/admin不加載。顯示了not found error
。管理員是一個文件夾。任何想法?
文件夾現在不加載 – asitha
完成更改。它現在會工作 – 2012-01-24 06:10:45