nginx重写网址无法正常工作

时间:2017-04-26 08:52:58

标签: .htaccess nginx url-rewriting

我有一些来自.htaccess的重写网址,它们在nginx上不再有效。都给了我404

.htaccess网址:

RewriteRule ^password/reset?$ index.php?a=password&b=reset [L]
RewriteRule ^email/verification/(.*)?$ index.php?a=email&b=verification&hash=$1 [L]

nginx重写网址

rewrite ^/password/reset?$ index.php?a=password&b=reset break;
rewrite ^/email/verification/(.*)?$ index.php?a=email&b=verification&hash=$1 break;

0 个答案:

没有答案