我有joomla目录,我有子文件夹名称成员资格和文件。我需要通过浏览器URL访问成员资格文件夹,但访问我得到500内部服务器错误问题。如何避免它。
for example:
https://example.com // joomla directory with htaccess
https://example.com/membersip/file.php
Output: 500 internal server error
通常,您应该能够毫无问题地访问它。但是.htaccess文件中可能还有其他限制。
在我的htaccess文件中,重写条件中的以下行允许直接访问文件夹:
# and the requested path and file doesn't directly match a physical folder
RewriteCond %{REQUEST_FILENAME} !-d
调查www文件夹中的.htaccess文件,确保它不会阻止对子文件夹的直接访问。
否则:500内部服务器错误应在服务器日志中留下一些错误消息。