我有以下網址htaccess的URL重寫.PHP
http://www.***.org/aaddress.php?state=nm&office_id=852&office_name=CLOVIS&state_name=New%20Mexico
我想改變它下面的網址
http://www.*****.org/aaddress-state-nm-office_id-852-office_name-CLOVIS-state_New%20Mexico.php
我用下面的htaccess代碼
Options +FollowSymLinks
RewriteEngine on
RewriteRule aaddress-state-(.*)-office_id-(.*)-office_name-(.*)-state_name-(.*)\.php aaddress.php?state=$1&office_id=$2&office_name=$3&state_name=$4
這是不工作,當我點擊寫入地址沒有轉換爲.php頁面
個我的頁面作爲第一個鏈接,鏈接裏想改變它作爲.php爲紐帶
+1對於有趣的問題,我會盡力想出一個合適的答案。 – anubhava 2012-02-03 15:38:24