Home |   Community News |   Submit WP Powered Site |   WP Powered Sites Gallery
 
 
 
 

How to Customize WordPress Error 404 Page

Error 404 pages are where servers direct browsers when a URL seeks a missing page. While it’s easy to think you won’t really need a 404 page with a WordPress install, you’d be surprised. Even though all the links to the article or page you deleted are removed automatically from within your site, someone else might have created a link on their site to your post, which will no longer work.

That is what happening with me. I have shifted my blog to new server and its creating lot of problems for my blog. Most of the time this new server is down and I have to redirect my blog to my previous server which doesn’t have latest posts.

In order to create a custom 404 template file, follow these steps:
1. Copy the contents of your page.php template file into a new template file
named 404.php template file.
2. You can remove the entire loop from the file.

3. Place in some encouraging text and the PHP code to include the search.php
template file:
<h2>Not Found</h2>
<p>Sorry, but you are looking for something that
isn’t here.</p>
<?php include (TEMPLATEPATH . “/searchform.php”); ?>

4. Add the #sidebarLT XHTML div and PHP WordPress template tag back in
under the content div:
<div id=’sidebarLT”>
<?php get_sidebar();?>
</div><!–//sidebarLT –>

These steps should give you a 404 error page that looks like these:

Best PSD to HTML

1. JackFig
2. RedTag
3. AteaseWeb
4. OnWired
5. Fotolia
6. Alt-Web
7. Huwshim
8. Twitter
9. ILoveTypography
10. Suspendedanimations
11. Tigerleisure

More you can find on Best PSD to HTML

Like this post? Share it!

  • Tweet
  • Facebook
  • Diggit
  • Delicious
  • Diggit
  • Diggit
  • Diggit

Related Posts


l

User Comments


  1. kevin
    December 12, 2009

    i love you



  2. Yahoo! Detector
    December 12, 2009

    yes, I absolutely agree with you, I am working on it too! thanks.



  3. favSHARE
    December 16, 2009

    This article has been shared on favSHARE.net. Go and vote it!



  4. shawnna
    December 18, 2009

    absolutely awesome.. I havet seen 404 pages like this..

    am in love with chu…..:P.. LOL…

    And honestly, you have a great list…

    Shawnna.



  5. Dave Holowiski
    December 31, 2009

    This is something that’s really overlooked. When someone hits a 404 error it means they were looking for something and couldn’t find it. It is really important that you present the user with something useful, like a search box or a table of contents, otherwise it’s just like a lost sale.
    I think if people were to check their web site stats, they would find a shocking number of 404 errors! In my opinion a 404 error is a lost oprotunity.



  6. Bill
    June 13, 2010

    sorry, the url should be http://webhosting-talk.me/404.shtml not ended with .html :)


Leave a Reply

CommentLuv Enabled
Rss Feeds   Twitter Followers Email Updates


Community News

Submit More

Popular Posts