开发者

Rewrite rule Apache to nginx

I need help from professionals :) Can anyone tell me how to rewrite this rules from apache to nginx?

RewriteRule ^([0-9a-zA-Z]{1,6})$ forum/?to=$1 [L]
RewriteRule ^([0-9]{1,9})/start/(.*)开发者_Python百科$ forum/?uid=$1&adt=2&url=$2 [L]
RewriteRule ^([0-9]{1,9})/(.*)$ forum/?uid=$1&adt=1&url=$2 [L]

Thanks!


here you go..

rewrite ^/([0-9a-zA-Z]{1,6})$ /forum/?to=$1 last;
rewrite ^/([0-9]{1,9})/start/(.*)$ /forum/?uid=$1&adt=2&url=$2 last;
rewrite ^/([0-9]{1,9})/(.*)$ /forum/?uid=$1&adt=1&url=$2 last;
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜