我有以下网址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