laravel - 空白页 laravel
问题描述
Larave 显示一个白页,存储为 777,引导程序为 777,我有 .env 工作,我做了作曲家更新,我的 htacess
它不会在 php.ini 中显示任何错误。
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [L,R=301]
RewriteCond %{REQUEST_URI} !(\.css|\.js|\.png|\.jpg|\.gif|robots\.txt)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !^/public/
RewriteRule ^(css|js|images)/(.*)$ public/$1/$2 [L,NC]
解决方案
你尝试使用默认的 Laravel htaccess 吗?
尝试使用这个:
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews -Indexes
</IfModule>
RewriteEngine On
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^ %1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
推荐阅读
- java - graalVM native-image 是否支持 Javax.ImageIO?
- javascript - FCC - 故障问题。无法获取 req.body
- reactjs - componentDidMount/componentDidUpdate React JS 中的套接字 IO 事件处理程序
- dictionary - flutter_map 插件不更新当前位置
- swiftui - SwiftUi 在设备上以不同方式缩放文本
- c - 我可以在 pthread_mutex_lock 和解锁语句中插入一个函数吗?
- r - 根据循环中 df 的名称更改几个 dfs 中的列(R)
- azure - 通过 HashiCorp 的 Vault 修改 Azure AD 用户帐户?
- git - 在 Github Actions 中克隆一个私有仓库
- xcode - 源代码管理丢失项目的 Xcode 问题