Redirect 如何在NgInX中将带有查询字符串的url重定向到没有查询字符串的url?
我需要将包含查询字符串的url重定向/重写到同一url,但不包含查询字符串。比如说Redirect 如何在NgInX中将带有查询字符串的url重定向到没有查询字符串的url?,redirect,nginx,rewrite,Redirect,Nginx,Rewrite,我需要将包含查询字符串的url重定向/重写到同一url,但不包含查询字符串。比如说 很抱歉我的英语不好。简单,在重写的最后放一个?, 发件人: 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
很抱歉我的英语不好。简单,在重写的最后放一个
?
,
发件人:
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