- Open a text editor (notepad in Windows) and write the following: ErrorDocument 404 /error-page.html
Save the file as .htaccess.txt - Create a page which will contain your error message and save it as error-page.html
- Upload the 2 files you have created (.htaccess.txt and error-page.html) using an FTP program (like Filezilla) to the main directory of your site.
- Rename the file .htaccess.txt to .htaccess
Thats all. You can see an example of 404 error page here.