title: Nginx rewrite URL, change parts of URL
body: <p>Is it possible in Nginx to rewrite URL like this?</p>
  
  <pre><code>http://www.example.com/city/person/contact.php?id=name
  </code></pre>
  
  <p>to </p>
  
  <pre><code>http://www.example.com/city/person/name/contact
  </code></pre>