2
我需要将apache mod_rewrite规则转换为nginx 请大家帮忙!我需要将apache重写转换为nginx
阿帕奇重写规则是:
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]
谢谢@jmh我会阅读 – saad