SearchEngineChannel

Looking for somewhere to host your site? Browse our PHP web hosts section!

Home > Tutorials > Custom error pages using .htaccess

Custom error pages using .htaccess

Quick jump:
Introduction
Create the .htaccess file
Create the 404 error page
Trying it out
Taking it further

Introduction

We've all seen the dreaded Error 404 message - the result of broken links and mistyped URLs. You've probably been on some websites where the error pages are customised with their own logo and message, and I'm sure you'll agree that it looks far more professional than the standard one.

In this article we'll show you how to use Apache's .htaccess file to make your own customised error 404 pages.

Next page: Create the .htaccess file