2

我需要将 apache mod_rewrite 规则转换为 nginx 请帮忙!

Apache重写规则是:

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]
4

1 回答 1

0

http://nginx.org/en/docs/http/ngx_http_rewrite_module.html This page explains how to use nginx rewrite.

于 2012-09-09T01:23:09.020 回答