【发布时间】:2018-01-16 05:09:44
【问题描述】:
我有一个网址,例如:
http://www.example.com/something?abc=one&def=two&unwanted=three
我想删除不需要的 URL 参数并保持 URL 的其余部分完好无损,它应该如下所示:
http://www.example.com/something?abc=one&def=two
相对于其他参数,此特定参数可以位于 URL 中的任何位置。
这个问题看起来很简单,但我尝试了很多次但最终都失败了。
【问题讨论】:
标签: redirect mod-rewrite nginx url-redirection