Skip to content
Advertisement

Errordocument not redirecting to custom 404 page

So I have a website and I want it to redirect to a custom 404 page I made when it gets a 404 status, so this is inside my .htaccess file:

JavaScript

Which also contains code to remove the extensions to be able to go to a page like this domain/file without having to specify the trailing extension and Options -Indexes to disable directory browsing. Now when I go on a page that does not exist I get this page:

(PS: I’m using brave browser thus the presence of the wayback machine prompt)

Page and this status:

JavaScript

But it does not redirect to my 404 page as specified in my .htaccess file.

Any idea?

Thanks in advance.

Advertisement

Answer

I fixed it by adding

JavaScript

and replaced Options -Indexes by Options All -indexes. to the top of .htaccess file.

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement