|
Open a text editor (Windows notepad will do), and copy the following onto the first line:
ErrorDocument 404 /error-page.html
Now, save the file onto your hard-drive as a text file (.txt) and name it ".htaccess.txt".
FTP to your web-site's root directory (where your homepage is located) with a program like WS-FTP. Copy the above file into the main directory of your site.
note: Be sure to upload in "ascii" and not "binary" format.
Rename ".htaccess.txt" to plain old ".htaccess"
Finally, create a custom web-page with your html editor, name it "error-page.html", and upload it into your root directory.
Use -
- custom 404 error page looks very professional than that default page.
- It will reduce the bounce rate of your website
- It will help you in retaining you existing visitors.
- It is very useful for optimizing your website.
- Having a very attractive custom 404 error page will result in enhancing the overall user experience of your website.
|