• About Me
  • Best Of
  • Contact Me
  • Forum

Jay Gaulard

  • Home & Living
    • Automotive & Mechanical
    • Carpentry & Building
    • Entertainment
    • Firewood & Heating
    • Gardening
    • Home Improvement
    • Lawn Care & Landscaping
    • Pets & Animals
  • Fitness & Recreation
    • Brazilian Jiu-Jitsu (BJJ)
    • Bushcraft & Camping
    • Hiking & Walking
  • Nature & Outdoors
    • Trees & Shrubs
    • Weather & Seasons
  • Technology & Internet
  • Travel & Destinations
  • Writing & Blogging
    • Ramblings & Opinion
You are here: Home / Technology & Internet / How to Set Up a Custom 404 File Not Found Page

How to Set Up a Custom 404 File Not Found Page

September 17, 2008

Ok, this is a pretty simple thing to do and it has some important benefits.

Have you ever visited a website or a web page only to find that annoying “Not Found” error message? If so, what did you do? You probably got ticked off, hit the back button and visited another website. Can you imagine someone coming across a “Not Found” error page on your website? Well, if you don’t have a custom 404 “File Not Found” page set up on your website, that might just be happening.

Here is what you need to do to fix this problem and keep your visitors on your website.

The first thing is to create a web page with some sort of message on it. Something like, “Whoops, looks like the page you are looking for isn’t here. Please click this link to visit our home page or our search page…” You get the idea. You can save the page as “404.php” or something similar and upload it to the root of your web server.

Oh, I forgot to mention this. In order to do what I am suggesting here, you need to be running an Apache web server and your web host has to allow changes to your .htaccess file. I am sure there are other ways to create a custom 404 File Not Found error page and get it up and running, but I am only talking about one way here.

Now, open up your .htaccess file and place this code into it somewhere. I like to place it right on top:

ErrorDocument 404 /404.php

I am using .php extensions for this stuff just because of habit and preference. You can use .html or whatever you wish.

Well, that’s basically it. You can now save your .htaccess file and upload it to the server and go see if it worked. Try typing in some page that you know isn’t there. If it works, please read my previous post about “How To Check Your Web Page HTTP Headers & Response Codes” for some important information.

Good luck.


Related posts:

  1. Sudden Drop In Google Ranking
  2. How To Make A Favicon
  3. Avoiding Duplicate Content On Your Own Website
  4. Google Ranking Drop Because Of Duplicate Content
  5. Creating Short URLs – MediaWiki – Version 1.10.0

Filed Under: Technology & Internet

What’s Next? Email Updates!

If you enjoyed reading this post as much as I enjoyed writing it, why not sign up to receive my posts by email? It's free and you can unsubscribe at any time!

Leave a Reply Cancel reply

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

CONNECT WITH ME

  • Email
  • Facebook
  • Google+
  • RSS
  • Twitter

RECEIVE MY POSTS BY EMAIL!

Interested in receiving my posts by email? This is your chance! Simply place your email address in the box below and I'll deliver each and every post I write directly to your inbox.

MOST POPULAR POSTS

  • Putting Wooden Sides On A Utility Trailer I am sure you are all just thrilled about my new utilit...
  • How to Fix a Symmons Shower Valve That Leaks What I'm about to share is for the greater good. I've d...
  • Building Wooden Sides For a Utility Trailer NOTE: Please read comments down below. This isn't a goo...
  • Assembling a John Deere 7-Bushel Rear Bagger I must say, this John Deere ride-on mower has been a re...
  • What Is a BMW Standard Scope? A few posts ago, I mentioned that I had to bring my car...
  • How Do I Get Rid of the Smell in My Brand New Wool Blanket? Question: All I can say is that this thing stinks. I ca...
  • Installing A Water Spigot In The Garage Valentine's day was here. I wanted to wash the car and...
  • Replacing a Stem Cartridge Spindle For Symmons Temptrol Shower Valve Wouldn't you just know it. As I was writing yesterday's...
  • Installing Lally Columns and Footings for Girder Beam One of the first things I noticed while looking at this...
  • Installing New Wooden Trailer Sides I know I've been down this road before, but I thought I...

Recent Comments

  • Jay Gaulard on Installing a Through-the-Wall Wood Stove
  • James on Installing a Through-the-Wall Wood Stove
  • Greg on Filling In a Basement Crawl Space
  • Swoopadoop on Using a Belt Sander to Sand Walls
  • Dani Lamirand on How to Effectively Move Warm Wood Stove Air From One Room to Another

Copyright © 2021 · Jay Gaulard My Personal Blog Blog · About · Best Of · Contact · Privacy / Terms · Sitemap