我的网站只有 4-5 个静态页面。索引.html & 索引.php两者都在那里。 index.html 工作正常。如果我更改为index.php,它会给出500 Internal Server Error
。我不知道我的错误在哪里?
Note:如果我使用.htaccess文件与php_flag display_errors 1
,
正在显示Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
如果我使用.htaccess文件与empty
,
正在显示Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
如果我给../contact-us.php
,它显示正确。
谢谢...
如果您的 php 代码存在致命错误,但错误显示已关闭,则会显示 500 Internal Server Error。您可以尝试以下操作来查看错误本身,而不是 500 错误页面:
在你的 php 文件中:
ini_set('display_errors', 1);
在 .htaccess 文件中:
php_flag display_errors 1
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)