You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nginx-rewrite/rewrite_test8.conf.bak

11 lines
243 B

# 伪静态化
# http://www.tianyun.com/login/tianyun.html ==> http://www.tianyun.com/reg/login.html?user=tianyun
location /login {
rewrite /(.*)/(.*)\.html$ /reg/$1.html?user=$2 permanent;
}
location /reg {
root /usr/share/nginx/html;
}