3
我需要重定向/重写包含查询字符串的url到相同的url,但没有查询字符串。例如http://domain.com/a-post-title/?fbid=xyz至http://domain.com/a-post-title/ 对不起,我的英语不好。如何我可以重定向url查询字符串的网址在NgInX没有查询字符串?
我需要重定向/重写包含查询字符串的url到相同的url,但没有查询字符串。例如http://domain.com/a-post-title/?fbid=xyz至http://domain.com/a-post-title/ 对不起,我的英语不好。如何我可以重定向url查询字符串的网址在NgInX没有查询字符串?
简单,只是把?
你重写, 年底从:
If a replacement string includes the new request arguments, the previous request
arguments are appended after them. If this is undesired, putting a question mark at the
end of a replacement string avoids having them appended