开发者

Rewrite rule Apache to nginx

开发者 https://www.devze.com 2023-03-12 12:07 出处:网络
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]

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

精彩评论

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