For my web page, I have a .htaccess
document which looks like this
<Files .htaccess>
order allow,deny
deny from all
</Files>
ErrorDocument 404 /websites/404/index.php
Now as far as I understand it you can include further ErrorDocument
by just adding another line. For example
<Files .htaccess>
order allow,deny
deny from all
</Files>
ErrorDocument 404 /websites/404/index.php
ErrorDocument 503 /websites/maintenance/index.php
However, when I try to add a page for HTTP 451 using the following line of code ErrorDocument 451 /websites/451/index.php
and I reload my page I get a Server error! Error 500
. I later found out this was because XAMPP was no longer picking up my folder with the .htaccess
file in and the error could only be resolved by removing the ErrorDocument
for error 451
. What is causing this and how can I fix it?
Note
I also found that this happens for error 418: I'm a teapot
as well
Edit
Just to include a little more information about the software I am using. I am using
- XAMPP Control Panel v3.2.2
- Apache 2.4.17 - This is the version which comes with XAMPP