error page using htaccess file

first create .htaccess  file and save it.

then write below code

ErrorDocument 404 /404.html

 

here

404 means when page not found then it occurs

404.html means that page which you want to display.

 

 


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *