Tikam Shah

How to create an custom error 404 in PHP?

In order to create your own custom error page , follow the following steps :

1 ) Create your custom custom-404.php page .
2 ) Make an .htaccess file and place it on your root folder .
3 ) Place the following line in the htaccess pages  : ErrorDocument 404 http://www.domain.name/custom-404.php