【发布时间】:2020-12-14 20:38:03
【问题描述】:
我在共享主机 Cpanel 中托管我的 Symfony 5 应用程序。当我使用 .htaccess 文件时,显示以下错误:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at webmaster@famousmartbd.com to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
.ht访问代码:
<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ %{ENV:BASE}/public/index.php [L]
</IfModule><IfModule !mod_rewrite.c>
<IfModule mod_alias.c>
RedirectMatch 302 ^/$ /public/index.php/
</IfModule>
</IfModule>
如何解决此错误。请帮帮我。
【问题讨论】: