I want to use rewrite function in my nginx server.
When I try \"http://www.example.com/1234\", I want to rewrite \"http://www.example.com/v.php?id=1234\" and want to
In my case, I needed to use 'last' to make it work due I had other rules that I wanted to be applied:
location ~ /[0-9]+ { rewrite "/([0-9]+)" /v.php?id=$1 last; }