title: I need to convert apache rewrite to nginx
body: <p>I need to convert apache mod_rewrite rules to nginx
  please help !</p>
  
  <p>Apache rewrite rules is :</p>
  
  <pre><code>RewriteEngine On
  Options +FollowSymLinks
  
  RewriteRule ^(.*).htm$ index.php?p=$1 [L]
  RewriteRule ^(.*).html$ index.php?p=site&amp;d=$1 [L]
  
  RewriteRule ^images/w-([0-9]+)-(.*).*$ img/rsc.php?w=$1&amp;ph=$2 [L]
  RewriteRule ^images/h-([0-9]+)-(.*).*$ img/rsc.php?h=$1&amp;ph=$2 [L]
  </code></pre>