【发布时间】:2017-01-24 14:51:49
【问题描述】:
我已经阅读了很多关于使用多个参数进行 URL 重写的问题。但是我仍然无法解决这个问题:
我有这个带有多个参数的 URL,其中一些没有值http://localhost:8888/coches/index.php?maker=all&model=&registration_year=&price_until=&tfseekfid=main_search&s=~
我想改写成http://localhost:8888/coches/all-cars
我已经尝试过这条规则和其他几个规则,但无法让它发挥作用。
RewriteRule ^all-cars$ /index.php?maker=all&model=®istration_year=&price_until=&tfseekfid=main_search&s=~ [L,QSA]
有人可以帮忙吗?谢谢
【问题讨论】:
标签: php apache .htaccess mod-rewrite url-rewriting