我的 Laravel 應用程式已經在我的 Cpanel 上使用了 3 年多。今天,No input file specified.當您訪問我的網站時,它開始拋出錯誤。
我將相同的代碼移動到子域 text.lamxxx.com 并且它作業正常。但是在我的主域上仍然拋出No input file specified.
我已經排除故障超過 24 小時。我檢查了服務器日志,檢查 Laravel 日志等。但網站仍然關閉。
下面是我的 .htaccess
<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>
# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php73” package as the default “PHP” programming language.
<IfModule mime_module>
AddHandler application/x-httpd-ea-php73 .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit```
uj5u.com熱心網友回復:
請嘗試從 Cpanel 更改 PHP 版本,然后檢查。我可能請更改為 php 5.6 并檢查。
uj5u.com熱心網友回復:
我認為您的問題是由于PHP 版本升級,
嘗試按照上一篇文章中的說明修改您的 .htacces 未指定輸入檔案
如果問題仍然存在,請嘗試恢復到以前的 PHP 版本。
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/321853.html
標籤:php 拉拉维尔 .htaccess laravel-5 面板
上一篇:Laravel中的洗掉功能
