How to create & setup custom error page
Hello friends,Today I will show you How create custom error 404 page in website .
What is error page?
Error 404 tells users the page cannot be accessed it can be problem for your website .Error 404 is a landing page that tells your site viewers the requested page is unavailable.so we create error 404 custom page. If user enter any wrong url in your website ,its automatic redirect to error 404 page.
First I create 3 php file & .htaccess file in root folder:
- home.php
- post.php
- error404.php
- .htaccess
1. home.php
1. post.php
1. error404.php
1. .htaccess
Video Tutorial of How to create custom error 404 page in website
In this video I you have seen the demo of this project. I hope you like this tutorial and want to get source codes but don’t worry I’ve provided the codes of this project at the bottom of this page and you can easily copy-paste or download the code files.
But first, read this blog till the end to understand the codes and concepts behind How to get file extension in php.
You might like this:
Create custom error 404 page in website [Source Codes]
To create this project [create custom error 404 page in website]. First, you need to create 4Files. After creating these files just paste the following codes into your file. You can also download the source code files from the given download button.