【发布时间】:2024-01-18 00:29:01
【问题描述】:
我在我的 xampp apache 服务器上创建了 .htaccess 文件。
RewriteEngine on
RewriteRule ^home$ index.php [L]
RewriteRule ^zaloguj$ login.php [L]
RewriteRule ^utworz-konto$ register.php [L]
它一直有效,直到我添加
ErrorDocument 404 err404.html
然后它显示错误500。我试图检查httpd.conf
<Directory "C:/Users/Me/AppData/Roaming/XAMPP/htdocs">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Require all granted
</Directory>
对我来说,它看起来应该可以工作。 RewriteRules 是唯一有效且不会产生错误 500 的东西。
【问题讨论】:
-
你有 mod_rewrite 模块吗?