In one of my location rules, I am trying to rewrite the URL as such:
rewrite ^ $topicredirecturi?$args permanent;
$topicredirecturi is calculated in a map file, mapping for example a URL such as
http://www.topics.com/companies/cit-group-inc/index.html
to
http://www.topics.com/companies/cit_group_inc/index.html
When I make my request with URL parameters such as:
http://www.topics.com/companies/cit-group-inc/index.html?rss=1
I get the following rewritten URL with duplicate params:
http://www.topics.com/companies/cit_group_inc/index.html?rss=1&rss=1
Similarly, the URL
http://www.topics.com/companies/cit-group-inc/index.html?rss=1&bob=2
gets rewritten to
http://www.topics.com/companies/cit_group_inc/index.html?rss=1&bob=2&rss=1&bob=2
Anyone know what might be going on here?