Jump to content

[Solved] Non-Existant Page Request Shows Apache Internal Error Page.


Recommended Posts

Guest MPqO
Posted

I've added two addon domains for future use to my main account. I've noticed that in case of a non-existed page request for both my addon domains, an error 500 is returned.

 

For example:

 

http://www.denied.gr/test123

 

I've already tried to avoid the error by putting 404.shtml to the addon domains home directory, but apache simply ignores it and the 500 is shown.

 

server: Stevie

user: filarvon

 

It isn't a big deal for me especially for now, I just want to report the behavio in case it's a bug.

 

Thank you.

Posted

You need to add the 404 page to your .htaccess like this:

 

ErrorDocument 404 http://www.denied.gr/404.shtml

 

Make sure it's the full path to where ever your 404 page is.

Guest MPqO
Posted
You need to add the 404 page to your .htaccess like this:
ErrorDocument 404 http://www.denied.gr/404.shtml

Make sure it's the full path to where ever your 404 page is.

 

It doesn't work. Same error 500.

 

I've tried both with http:// and absolute (/home1/etc/etc) path.

Posted

I see my last suggestion didn't work. Sorry i don't have an addon domain to test this with. This person says for addon domains this should work. Try it with the full path and the short path both. Be sure to clear your cache when testing:

 

http://askmichel.icoder.com/2006/10/01/custom-error-pages-for-different-addon-domains/

 

 

 

This could possibly be your problem?

 

https://forums.cpanel.net/threads/addon-domain-finding-and-editing-404-error-page.40684/

Guest MPqO
Posted
I see my last suggestion didn't work. Sorry i don't have an addon domain to test this with. This person says for addon domains this should work. Try it with the full path and the short path both. Be sure to clear your cache when testing: http://askmichel.icoder.com/2006/10/01/custom-error-pages-for-different-addon-domains/ This could possibly be your problem? https://forums.cpanel.net/threads/addon-domain-finding-and-editing-404-error-page.40684/

 

I've tried using longer text but same result.

 

Apache default error 500.

 

Feel free to test with my addon domains if you like. There are empty for now.

Posted

The reason you're getting a 500 error is because of the public_html/.htaccess file. Try renaming that file to something else, and you should get the 404 as expected.

Guest
This topic is now closed to further replies.
×
×
  • Create New...