Custom error page does not work anymore, four weeks ago it worked. How do I fix this?

Status
Not open for further replies.

jfrancis79

Member
Prime Account
Messages
133
Reaction score
1
Points
18
I made a custom error page that is very basic, witch says "404 Page not found" and that URL to my error page is http://afn.me/404.php , however when I type in page or directory that does not exist, it does not display my custom error page it displays x10hosting's error page. How do I fix this?
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
Re: Custom error page does not work anymore, four weeks ago it worked. How do I fix t

Make sure you have a line like:

Code:
ErrorDocument 404 /404.php

In .htaccess
 
Last edited:

Livewire

Abuse Compliance Officer
Staff member
Messages
18,169
Reaction score
216
Points
63
Re: Custom error page does not work anymore, four weeks ago it worked. How do I fix t

He does, I'm pinging an admin to see if something's been changed recently.


Edit: Nothing's been changed but it looks like the custom page is working again from here, I don't get the x10hosting one.
 
Last edited:

Livewire

Abuse Compliance Officer
Staff member
Messages
18,169
Reaction score
216
Points
63
Re: Custom error page does not work anymore, four weeks ago it worked. How do I fix t

Mini-update: near as I can tell the problem lies within cPanel not making the .htaccess file that points to the error documents; you should be able to edit them like Descalzo showed, and if you want to use the ones you already made in cpanel, use their filenames (errorcode.shtml, such as 404.shtml). Doesn't necessarily have to be php.
 
Status
Not open for further replies.
Top