How can I change my 404 page?

jgaeditz

New Member
Messages
1
Reaction score
0
Points
0
Is there anyway to change my page not found / error/ 404 page into something I want?
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
1. I usually create a separate directory in public_html for my error pages. Call it something like 'error' or 'error_pages'. Or just use public_html

2. Create a file 404.html (or any name you wish, like missing.htm . It can be a PHP page too) in that directory.

3. a. Open .htaccess in public_html
b. add the line

ErrorDocument 404 /error/404.html

NOTE the leading / . If you put the custom 404 page in public_html, the line would be

ErrorDocument 404 /404.html

Repeat for any other custom Error page.
 
Top