I need to convert apache mod_rewrite rules to nginx
please help !
Apache rewrite rules is :
RewriteEngine On
Options +FollowSymLinks
RewriteRule ^(.*).htm$ index.php?p=$1 [L]
RewriteRule ^(.*).html$ index.php?p=site&d=$1 [L]
RewriteRule ^images/w-([0-9]+)-(.*).*$ img/rsc.php?w=$1&ph=$2 [L]
RewriteRule ^images/h-([0-9]+)-(.*).*$ img/rsc.php?h=$1&ph=$2 [L]
http://nginx.org/en/docs/http/ngx_http_rewrite_module.html This page explains how to use nginx rewrite.