404 Error Pages

Status
Not open for further replies.

wbspensfansite

New Member
Messages
14
Reaction score
0
Points
0
I have already read a previous thread about creating custom error pages so I tryed to make one. I have an addon domain. I selected my addon domain and wrote the code in CPanel. I also can see the 404.shtml in my folder, but it is not working. I still get the x10hosting 404 error page. Why is this?
 

mc se7en

New Member
Messages
218
Reaction score
4
Points
0
Can you paste the contents of your .htaccess file here please?
 

wbspensfansite

New Member
Messages
14
Reaction score
0
Points
0
# -FrontPage-
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName wbspensfansite.x10hosting.com
AuthUserFile /home/wbspens/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/wbspens/public_html/_vti_pvt/service.grp
 

Gouri

Community Paragon
Community Support
Messages
4,565
Reaction score
245
Points
63
If you created your own error documents then you have to add them to .htaccess

Add this (It is for 404 page not found error)

ErrorDocument 404 /path_to_error_page/errorpage.shtml

Here change the things accordingly. The path and the error page filename.


Like this you can add all these error pages,
These are the error numbers

401 - Authorization Required
400 - Bad request
403 - Forbidden
500 - Internal Server Error
404 - Wrong page
 
Last edited:

wbspensfansite

New Member
Messages
14
Reaction score
0
Points
0
Whatpart of the .htaccess file do you add it to? I put it right at the end and now I no longer get the x10hosting 404 error page, I get the IE 404 error page. Mine is still not being displayed.
 

mc se7en

New Member
Messages
218
Reaction score
4
Points
0
Whatpart of the .htaccess file do you add it to? I put it right at the end and now I no longer get the x10hosting 404 error page, I get the IE 404 error page. Mine is still not being displayed.

It just needs to be on its own line in the file anywhere. You made sure you changed the code to the proper URL, right?
 

Gouri

Community Paragon
Community Support
Messages
4,565
Reaction score
245
Points
63
Whatpart of the .htaccess file do you add it to? I put it right at the end and now I no longer get the x10hosting 404 error page, I get the IE 404 error page. Mine is still not being displayed.

I placed them after the index ignore case and they are working

here is mine

ErrorDocument 404 /404.shtml

404.shtml is at root of the public_html so i placed /404.shtml
 
Status
Not open for further replies.
Top