打开nginx配置文件vhosts.conf,加上try_files $uri $uri/ /index.php?$query_string; ,如下
location / {
index index.html index.htm index.php;
#autoindex on;
try_files $uri $uri/ /index.php?$query_string;
}
打开nginx配置文件vhosts.conf,加上try_files $uri $uri/ /index.php?$query_string; ,如下
location / {
index index.html index.htm index.php;
#autoindex on;
try_files $uri $uri/ /index.php?$query_string;
}
转载于:https://www.cnblogs.com/cxscode/p/7826134.html