A error 404 page is displayed in the cases where another site is linking to a URL on your site that isn’t available.
There can be different reasons why the URL isn’t valid, maybe you redesigned/restructured your site to a new URL structure, maybe somebody just made a typo in a link or in the browsers address bar, or maybe some of your content has been removed.
There are different philosophies about 404 pages. Some people just want to redirect the users to the sites front page, however if the user expects to see a very specific page on your site, being redirected to the front page isn’t a very good user experience.
In this post we’ll build a 404 page in PHP that tries to guide the user as close as possible to the most relevant content on your site.
Read more…
Recent Comments