Custom error page is not displayed!

Status
Not open for further replies.

tscrap

New Member
Messages
14
Reaction score
0
Points
0
You offered custom error pages for free x10hosting accounts. So, I created custom 404 and 403 error pages for my website. 403 error page worked. But, 404 error page is not the page that I created! The 404 error page is full of floating ads. The user will never identify that it is an error page! Why does this happen?
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
I can find 403.shtml directly on your site but I cannot find 404.shtml
Did you move or rename it?
 

techairlines

x10 Flyer
Community Support
Messages
2,867
Reaction score
165
Points
63
What descalzo said above.

Did you move or rename it?

Also look for a file in public_html named .htaccess (its a hidden dot file so if you use cPanel File Manager, make sure you choose to show dot files). Inside this file look for a line starting with:

ErrorDocument 404

If you used cPanel Custom Error Pages, make sure it says

ErrorDocument 404 /404.shtml

The page full of ads is x10's default 404 page, which is probably showing because your own 404 page is not working properly.
 

tscrap

New Member
Messages
14
Reaction score
0
Points
0
What descalzo said above.



Also look for a file in public_html named .htaccess (its a hidden dot file so if you use cPanel File Manager, make sure you choose to show dot files). Inside this file look for a line starting with:

ErrorDocument 404

If you used cPanel Custom Error Pages, make sure it says

ErrorDocument 404 /404.shtml

The page full of ads is x10's default 404 page, which is probably showing because your own 404 page is not working properly.

Thank You, I have modified the .htaccess file. It worked!
 

Zubair

Community Leader
Community Support
Messages
8,766
Reaction score
305
Points
83
Since Your problem is resolved Now. I am going to close this thread to mark it as resolved. Feel free to create a new thread if you need more help.

***Thread Closed***
 
Status
Not open for further replies.
Top