Custom 404 page.

Status
Not open for further replies.

istore_admin

Member
Messages
96
Reaction score
0
Points
6
Hi can anyone help me by telling me how to change the 404 page that comes up when a visitor to your site clicks on a broken link. It used to work but a while ago it stop letting me customize it. It now shows the default x10hosting 404 page.

Thanks,
Nick
 

Zubair

Community Leader
Community Support
Messages
8,766
Reaction score
305
Points
83
Add these lines in your .htaccess file

Code:
ErrorDocument 404 /404.html
ErrorDocument 403 /403.html
ErrorDocument 500 /500.html
 

istore_admin

Member
Messages
96
Reaction score
0
Points
6
Tried wot you suggested above Zubair but no luck man... It still is just showing the one provided by x10hosting

- Nick
 
Last edited:

Zubair

Community Leader
Community Support
Messages
8,766
Reaction score
305
Points
83
Make sure your error pages match with file names which you put in .htaccess file

404.html 403.html 500.html must be there in public_html folder in order to make this work
 

istore_admin

Member
Messages
96
Reaction score
0
Points
6
Thanks, the problem was that for some reason they had been saved as 404.shtml.

All fixed.
 

Zubair

Community Leader
Community Support
Messages
8,766
Reaction score
305
Points
83
Your problem is resolved Now. So 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