我希望将/q.php?start=0&co=US&l=AL&s=hotel
重写为/us/al/hotel
我尝试了这个,但是我收到了错误 - 没有找到。这是我的htaccess
RewriteEngine On
RewriteRule ^([^/]*)/([^/]*)/([^/]*)$ /q.php?start=0&co=$1&l=$2&s=$3 [L]
答案 0 :(得分:0)
这应该对你有用
RewriteEngine On
RewriteRule ^([^/]+)/([^/]+)/([^/]+)$ /q.php?start=0&co=$1&l=$2&s=$3 [L]