cancel
Showing results for 
Search instead for 
Did you mean: 

.htaccess

N/A

.htaccess

Is there way to specify an error page in the same root directory as the actual .htaccess file?

I assumed this would work:

ErrorDocument 404 error404.html

But it doesn't work. It seems to interpret the error404.html as a line of code and displays it, literally, on screen.

Any ideas?

David.
1 REPLY
N/A

.htaccess

is the error404.html file in the same directory as the .htaccess file ? if not then you will need to add the directory structure in front of the file . i.e. /errordocs/error404.html

also the error document must be over 512 bytes or it will not be displayed by microsoft windows