我如何轉換這個網址乾淨的URL htaccess的
http://localhost/cms/index.php?page=register
這個
http://localhost/cms/page/register.html
請幫助...我沒有htaccess的那麼好。
我如何轉換這個網址乾淨的URL htaccess的
http://localhost/cms/index.php?page=register
這個
http://localhost/cms/page/register.html
請幫助...我沒有htaccess的那麼好。
試試這個,使其工作就像你希望::)
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} \/cms\/index\.php
RewriteCond %{QUERY_STRING} page\=(.*)
RewriteRule (.*)$ /cms/page/%1.html
讓我知道,在任何問題的情況下... :)
謝謝夏爾馬:) ..它工作正常 – Jorge 2011-04-11 02:43:09
接受的答案?? :d – 2011-04-11 09:19:37