500 内部服务器错误:.htaccess

问题描述 投票:0回答:2

我收到以下错误

Internal Server Error 服务器遇到内部错误或 配置错误,无法完成您的请求。

请联系服务器管理员,webmaster@localhost 和 告知他们错误发生的时间以及您可能会发生的任何事情 所做的事情可能导致了错误。有关此的更多信息 服务器错误日志中可能会出现错误。阿帕奇/2.2.22 (Ubuntu) 服务器位于 111.118.254.188 端口 80

我正在运行 XAMPP 服务器,这是我的 htaccess 文件,我不明白问题是什么。

# Customized error messages.
ErrorDocument 404 /index.php

# Set the default handler.
DirectoryIndex index.php

# Various rewrite rules.
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L,QSA]
</IfModule>
php apache .htaccess
2个回答
0
投票

服务器内部错误 服务器遇到内部错误或配置错误,无法完成您的请求。

请通过 [email protected] 联系服务器管理员,告知他们此错误发生的时间以及您在出现此错误之前执行的操作。

服务器错误日志中可能提供有关此错误的更多信息。

此外,尝试使用 ErrorDocument 处理请求时遇到 500 Internal Server Error 错误。

estou com esse erro,nao consigo sabre a causa。 o arquivo pdf esta na Pasta do servidor e o endereço do pdf no codigo esta correto。 o que pode estqa causando isso? Preciso colocar esse pdf,é um Historicalo Escolar para um sistema de escola!


-1
投票

您应该添加 RewriteBase 来定义每个目录的前缀。

也尝试添加:

Options +FollowSymLinks
© www.soinside.com 2019 - 2024. All rights reserved.