Custom 404 Error page tagged:

Custom 404 Error page

Posted by admin in Tips

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.

  1. Open your Notepad.
  2. Write ErrorDocument 404 /not_found.html
  3. Save it as “.htaccess” including double quotes. That way Notepad will not put .txt file extension.
  4. Upload both files .htaccess and not_found.html to the root directory of your web server.

custom404