我想我的URL重寫從http://xyz.edu/profile.php?name=gavin到http://xyz.edu/gavin.htmlhtaccess的重寫海基會網址
示例代碼:
RewriteRule ^profile\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ profile.php?compname=$1 [L]
你現在的代碼在哪裏? –
我已將htaccess放入我網站的根目錄中。 –
這不是我的意思。你需要展示你現在的規則,以及你在問題中做了什麼樣的嘗試。 –