Nginx下 怎么开启 Url重写

2025-04-24 10:05:25
推荐回答(2个)
回答1:

location ~ \.php$ { root html; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } 把上面一段代码添加到server段里面去。。。记得 检测...

回答2:

目测这个正则木有问题哈!是不是还有其他的覆盖了,加个last看看