redirect 될 주소 뒤에 ? 를 붙이면 쿼리스트링을 제외하고 리다이렉트 시킴

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

rewrite ^/users/(.*)$ /show?user=$1? last;