Custom Error Pages

Status
Not open for further replies.

2enetwork

New Member
Messages
9
Reaction score
0
Points
0
Hi! I tried to setup custom error pages for my site using the htaccess file located under public_html, and when I type in a wrong address, it will not pull up my 404 error, instead, it will show the browsers default 404 error page. Any clue why this is happening, and how do I fix it?

Now here is the strange part, I went to check and see if my pages were able to be viewed on the site, and I would get redirected to x10hosting's 404 error (why) but when I would try to get a 404 error, I would get the browser's default 404 error page.

Here is the codeing I used in the htaccess file:

Code:
ErrorDocument 404 /errors/404.html

(And just incase you wanted to see the full view of the htaccess file for public_html, here it is:)

Code:
# -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 2enetwork.x10hosting.com
AuthUserFile /home/login2e/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/login2e/public_html/_vti_pvt/service.grp
Options All -Indexes
ErrorDocument 401 /errors/401.html
ErrorDocument 403 /errors/403.html
ErrorDocument 404 /errors/404.html
ErrorDocument 500 /errors/500.html

Thank you for your help!

(my site is http://2enetwork.tk)
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
Do you have a subdirectory errors with the files in it?
.html, not .htm or .HTML
and errors, not Errors
 

2enetwork

New Member
Messages
9
Reaction score
0
Points
0
Those files do exist, but for some reason the are not appearing right. Here are a few screenshots to show you the problems.

To show you that the pictures are there:

Screen1.png

Screen2.png


And here is what happens when I go to a non-existant page under my site:

Not Found.png

x10 404.png


The only thing I can think is that maybe x10 has blocked the 404 errors? Are we allowed to use custom error pages with x10 hosting? Other than that, I dont have the slightest clue why I am getting a 404 error when trying to view the pages.
Edit:
And BTW, I have apache setup on my computer for testing and I keep it in sync with my real site, and when I go to the exact same directory (/errors/404.html) it works on my computer.
Edit:
Ok, here is something strange I just found out. I tried to change the name of the folder to errorpgs, and it worked. Then I tried changing it back to errors, it didnt work. Does anyone have any clue why x10 Hosting's servers dont like my folder "errors"?
 
Last edited:

Zubair

Community Leader
Community Support
Messages
8,766
Reaction score
305
Points
83
Try changing the extension to .shtml
 

Zubair

Community Leader
Community Support
Messages
8,766
Reaction score
305
Points
83
Have you edited the .htaccess file in public_html or in the root folder?


Please see before posting... This is .htaccess file

Code:
# -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 2enetwork.x10hosting.com
AuthUserFile /home/login2e/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/login2e/public_html/_vti_pvt/service.grp
Options All -Indexes
ErrorDocument 401 /errors/401.html
ErrorDocument 403 /errors/403.html
ErrorDocument 404 /errors/404.html
ErrorDocument 500 /errors/500.html
 
Status
Not open for further replies.
Top