title: How to write a url rewrite in nginx?
body: <p>I want people type in  <a href="http://www.myweb.com/like/1234456" rel="noreferrer">http://www.myweb.com/like/1234456</a>  will redirect to
  <a href="http://www.myweb.com/item.php?itemid=1234456" rel="noreferrer">http://www.myweb.com/item.php?itemid=1234456</a></p>
  
  <p>I wrote something like this in the config but it doesn't work.  </p>
  
  <pre><code>location = ^~/like/ {
                  rewrite ^1234456  ../likeitem.php?item=1234456break;
                  return 403;
          }
  </code></pre>
  
  <p>this is just a test.  I haven't used the $ matching yet.   </p>
  
  <p>I also restart my ngnix server but still.. it doesn't do the redirect.</p>