centos+Nginx + PHP+mysql,请问我怎么开启rewrite

2024-11-20 20:44:08
推荐回答(1个)
回答1:

nginx serve里面可以配置
例如:
location / {
index index.html index.htm index.php;
rewrite ^/(.*)/(.*)/(.*)\.html /$1.php?name=$2&you=$3 last;
#autoindex on;
}