This technique is helpful when your site is hosted on Apache web server. You can easily create a custom 404 error page in a few minutes. Firstly, you need to create a web page (e.g. not_found.html - it can be any name) which will be used as a custom error page of your site. The web server will automatically redirect the browser to not_found.html page if a particular web page of your site has been removed or not found. Then, follow the steps below to create .htaccess file which is a configuration file of Apache web server.
- Open your Notepad.
- Write ErrorDocument 404 /not_found.html
- Save it as “.htaccess” including double quotes. That way Notepad will not put .txt file extension.
- Upload both files .htaccess and not_found.html to the root directory of your web server.


0 responses so far ↓
There are no comments yet...Kick things off by filling out the form below.
Leave a Comment