请帮帮我。如何为 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]
请帮帮我。如何为 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]
结帐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;