我試圖做一個查詢字符串重寫查詢字符串的.htaccess
http://www.example.com/library.php?q=abscessed-tooth
的一個非常簡單的重寫
http://www.example.com/library/abscessed-tooth
這是我寫在我的代碼。 htaccess文件,它是無所事事
RewriteEngine On
RewriteRule ^/library/?([^/]*)/?\/http://www.example.com/library.php?q=$1 [L]
什麼是重寫後產生的網址是什麼?還是根本不重寫?請更確切地說明你的問題到底是什麼。 – thomaux
因此不能重寫所有..這是我已經寫在我的htaccess文件 RewriteEngine敘述在 重寫規則^庫/([^ /] *)http://173.192.186.220/~newmedia/dev/ allsmile/library.php?q = $ 1 [L] –