Pages

Thursday, 22 April 2021

PHP 404 page handling

 

PHP 404 page handling

Server shows 404 error code when requested resource not found at server. By default, the browser display 404 error page .which is not as user-friendly because it does not show our website look and layout. if you want to custom 404-page handling page then this post will help you. to do the above let follows the steps given below.


  • Create a .htaccess file
  • Add following code 
      RewriteEngine on
      ErrorDocument 404 http://www.girfa.co.in/404.php
  • Create a custom 404 page as per your look.
  • Make sure that 404 page path should be the complete path of hosted website because it will not work offline. 

No comments:

Post a Comment