Guest MPqO Posted May 15, 2016 Posted May 15, 2016 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: Stevieuser: 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.
Byron Posted May 17, 2016 Posted May 17, 2016 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 May 17, 2016 Posted May 17, 2016 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.
Byron Posted May 17, 2016 Posted May 17, 2016 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 May 21, 2016 Posted May 21, 2016 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.
Byron Posted May 21, 2016 Posted May 21, 2016 This support request is being escalated to our root admin.
Krydos Posted May 22, 2016 Posted May 22, 2016 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.
Recommended Posts