在nginx配置文件中添加如下代码;在网站根目录添加.htaccess文件
location / {
# Redirect everything that isn’t a real file to index.php
try_files $uri $uri/ /index.php$is_args$args;
}
在nginx配置文件中添加如下代码;在网站根目录添加.htaccess文件
location / {
# Redirect everything that isn’t a real file to index.php
try_files $uri $uri/ /index.php$is_args$args;
}