我想我的URL重寫從http://website.com/preview.php?id=puzzled到http://website.com/cv/puzzled 和http://website.com/resume.php?id=puzzled到http://website.com/puzzled ...但看來我沒有得到這樣的結果。重寫我的網址,除去查詢字符串,並作出新的漂亮的網址
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteRule ^([0-9a-zA-Z-]+) /resume.php?id=$1 [QSA,L]
RewriteRule ^cv/([0-9a-zA-Z-]+) /preview.php?id=$1 [QSA,L]
好的,謝謝你,你能解釋一下這更多? :) –
嗨,這與我的登錄網址無法正常工作http://website.com/login.php其中504這裏 –
你怎麼把網址登錄'website.com/login.php'或'website.com/login ' –