How do I convert nginx equivalent URL rewrite for the following:
RewriteRule ^read/([0-9]+)/?$ /read/?u=$1 [QSA,L]
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can do this in two ways, with a location:
or with just a rewrite:
nginx will append the query string by default (you can disable the behavior by adding another ? at the end of the rewrite target).