title: Using Nginx URL Rewrite System .. simple, last or break?
body: <p>I am trying to change</p>
  
  <pre><code>http://site.com/show_page.php?name=terms
  </code></pre>
  
  <p>to</p>
  
  <pre><code>http://site.com/pages/terms.html
  </code></pre>
  
  <p>I am normally pretty good with Nginx having setup few sites and done some work on it in the past. This is my URL rewrite, in the conf vhost - I have tried replacing <code>break</code> with <code>last</code> but no luck.</p>
  
  <pre><code>location /pages {
      rewrite ^/pages/(.*)$.html /show_page.php?name=$1? break;
  } 
  </code></pre>