我寫.htaccess文件轉換網址,搜索引擎友好:的.htaccess URL重寫不工作
原始URL是:
http://palestinianz.com/?page=person&p=Alex-Atalla
的.htaccess的內容是:
RewriteEngine On
RewriteRule ^([^/]*)\.html$ /?page=person&p=$1 [L]
它應該產生這樣的鏈接:
http://palestinianz.com/Alex-Atalla.html
但是,儘管我把文件放在我的網站的根目錄下,但它沒有任何效果! 問題在哪裏?
謝謝你正在工作!但你能解釋規則嗎? – 2012-07-31 18:56:41