我的配置如下:
server {
listen 90;
server_name localhost;
location /h6 {
rewrite "^/h6/(.*)$" /$1 break;
root /www/h6;
try_files $uri $uri/ /h6/index.html;
}
}
当我访问http://localhost:90/h6/home总会301跳转到http://localhost:90/home,
当我访问非home后缀时,例如http://localhost:90/h6/user则正常显示内容,有没有懂得大佬帮一下我,我实在不明白为什么会这样?