我已经创建并添加了一个子域名到我的网站,称为mis。该项目使用laravel 5.6和php 7.2实现。当我加载www.mis.example.com时,它给了我:mis.example.com目前无法处理此请求。 HTTP错误500
有一个.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]
你能帮我解决这个错误吗?
做一些优化 - https://laravel.com/docs/5.6/deployment#optimization
php composer install --optimize-autoloader --no-dev
php composer dump-autoload
php artisan config:cache
php artisan route:cache
php artisan config:clear
php artisan view:clear