最佳答案
贴一下phpstudy面板,附带官方文档配置信息,看看你的环境是否是nginx,还是apache,他们的静态规则是不一样的。 安装《Laravel 8 中文文档》
讨论数量:
贴一下phpstudy面板,附带官方文档配置信息,看看你的环境是否是nginx,还是apache,他们的静态规则是不一样的。 安装《Laravel 8 中文文档》
如果是 Nginx
【设置】-》【配置文件】-》vhosts.conf
。修改你项目的配置文件
将
location / {
index index.php index.html error/index.html;
include D:/phpstudy_pro/WWW/ddd/nginx.htaccess;
autoindex off;
}
替换成
location / {
try_files $uri $uri/ /index.php?$query_string;
index index.php index.html index.htm;
}
PS:
推荐文章: