0

请帮帮我。如何为 nginx 1.0.14 设置此重写?

RewriteRule ^([^/]*)\.html$ /?page=$1 [QSA,L]
RewriteRule ^([^-]*)-([^-]*)/$ /index.php?page=$1&act=$2 [QSA,L]
RewriteRule ^([[:alnum:]]{8})/*$ /index.php?page=paste&id=$1 [QSA,L]
4

1 回答 1

0

结帐http://wiki.nginx.org/HttpRewriteModule#rewrite

就像是:

rewrite ^([^/]*)\.html$ /?page=$1 last;
rewrite ^([^-]*)-([^-]*)/$ /index.php?page=$1&act=$2 last;
rewrite ^([[:alnum:]]{8})/*$ /index.php?page=paste&id=$1 last;
return 403;
于 2012-04-06T21:46:29.887 回答