Hello,
I have my domain, we'll pretend it's example.com. When I try going to some place like https://example.com/file_doesn't_exist, I expect to see the default 404 page, but I don't. I see:
To me, this is saying Apache couldn't find the 404 error page. I see the ErrorDocument for the 404 is set to 404.shtml and if I put a 404.shtml in my /home/username/public_html directory, sure enough, I'll receive the proper page.
I'm looking at cPanel though, in the section where I can create custom error pages. I see:
Where exactly are these basic error pages stored though? I know I have two locations where the 404.shtml files are:
It appears Apache isn't looking for the default 404.shtml file in either of those directories though. Right now, I just want to use the default error pages that come with Apache without copying them to my public_html directory.
Any ideas?
Thanks!
I have my domain, we'll pretend it's example.com. When I try going to some place like https://example.com/file_doesn't_exist, I expect to see the default 404 page, but I don't. I see:
Code:
Not Found
The requested URL /file_doesn't_exist was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
I'm looking at cPanel though, in the section where I can create custom error pages. I see:
Code:
Basic error pages are automatically provided by the web server (Apache). However, if you prefer, you can create a custom error page for any valid HTTP status code beginning in 4 or 5.
Code:
/usr/local/cpanel/htdocs/404.shtml
/var/www/html/404.shtml
Any ideas?
Thanks!