There is option to change the cutstom errors pages?

Status
Not open for further replies.

nkranx10

Member
Messages
62
Reaction score
2
Points
8
yes look in cpanel advanced error pages 400 to 500 , system allows you to edit
 

usama_rasab27

Member
Messages
208
Reaction score
15
Points
18
Hi, you could also do it through .htaccess, go to CPanel FileManager make sure 'Show Hidden Files (dotfiles)' is checked. Create a new file named '404.html' (Name it whatever you want, but remember to change it in the .htaccess code). Type in 'Error', or whatever you want to be displayed. Then go to .htaccess and click edit. Copy and paste the following code:

Code:
<Files .htaccess>
order allow,deny
</Files>

ErrorDocument 404 /404.html

Then save it.

Check it out by going to your site, type in something like this: http://www.yoursite.com/wfwfe.html.

Want to take it further:

Error Code Reason
400 - Bad request
401 - Authorization Required
403 - Forbidden directory
404 - Page not found
500 - Internal Server Error

Just add:
Code:
ErrorDocument ERRORCODE /FILE
To .htaccess

Replace ERRORCODE with any of the error codes and FILE with the file name.

Thank You
 
Status
Not open for further replies.
Top