laravel框架在寶塔下安裝空白,路由無效

請求根目錄/ (http://www.xxx.com/public/),會請求public/index.php 輸入其他路由地址時,會把你的請求定位到:http://www.xxx.com/index.php 裏面,自然都是404 解決方案: 修改Nginx配置文件,對應域名的vhost配置文件: 增加一行:try_files $uri $uri/ /index.php?$query_string
相關文章
相關標籤/搜索