0
我正在使用此代碼進行網址重寫 它沒有做的是如果有目錄我想要去this它將去profile.php任何想法如何做隱藏擴展php的子目錄URL不能正確地重寫子目錄
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^([^/]+)$ $1.php
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule (.*) profile.php?username=$1
不工作 請求的URL /Artist/Dashboard.php此服務器上找到。 http:// localhost/desi/Artist/Dashboard(嘗試此網址) – 2012-07-30 16:41:25