Post Pic

Enhance the Look of Your Wordpress 404 page

There are instances when a particular webserver will not be able to serve you the specific page you are looking for. In these common cases, the server gives you page with a 404 response error.

A 404 error happens when you entered an invalid URL or the page/post you are looking for simply does not exist.

Wordpress blog displays an attractive “page not found’ every time it encounters 404 error. Using a more beautiful “page not found” rather than the very ordinary 404 error is greatly beneficial to both site owner and visitors.

404 page for wordpress

Reasons why you should use an attractive 404 page

Attracting visitors is the primary goal of websites. Servicing them in the best way you can is a must. Whenever a visitor can’t find the page he is searching for, he will surely prefer to see an attractive 404 page than reading technical stuff s that he might even understand. Furthermore, a pretty 404 page is more visitor-friendly. He will feel wanted and special, choosing to stay in your site.

Different techniques can be utilized to attract new visitors and make old ones come back to your site.

You should make sure that your 404 page is in tune with your site. Its theme and look must be similar with the overall appearance of the site.
Whenever your visitor can’t find a page that he is searching for, a friendly and apologetic way of telling that the page is unavailable is required. This will make the visitor feel that his presence is important.
Adding links in you home page, article, and posts is highly suggested. In addition, you should create a way where visitors can report broken links.
Your 404 page ending up in search results like Google is a definite No. To prevent this from happening, make sure than when a missing page is requested, your webserver gives an actual status code of 404 Http.
Examples of attractive 404 page designs are shown below:

404 page for wordpress

404 page for wordpress

Enhancing Wordpress 404 page

The 404 page that Worpress automatically creates is good. But good can easily turn into excellent with a few simple steps. These steps will allow you to offer your visitors more interactivity with your site and optimization of search engines.

1st Step  AskApache Google 404 plug-in Installation for WP blog

If you haven`t added this plugin yet, do add it ASAP. AskApache Google 404 plugin.

“This plugin uses some AJAX code, Google Search API’S, and a few tricks to display a very helpful and Search-Engine Optimized Error Page”

2nd Step Addition of 404.php code in Theme Folder

Addition of these codes in 404.php of your theme folder enables Wordpress blog to email you or your site automatically in the event a user stumbles on a 404 page.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php
$adminemail = get_bloginfo('admin_email'); #the administrator email address, according to wordpress
$website = get_bloginfo('url'); #gets your blog's url from wordpress
$websitename = get_bloginfo('name'); #sets the blog's name, according to wordpressif (!isset($_SERVER['HTTP_REFERER'])) { ?>
Sorry, tried accessing
<?php
$message = "Please don`t mind,";
} elseif (isset($_SERVER['HTTP_REFERER'])) {
echo "You tried clicking ";$failuremess = "A user tried to go to $website".$_SERVER['REQUEST_URI']." and received a 404 (page not found) error. ";
$failuremess .= "User came from ".$_SERVER['HTTP_REFERER'];
 
mail($adminemail, "$website : Bad Link To ".$_SERVER['REQUEST_URI'], $failuremess, "From: $websitename <noreply@$website>"); #email you about problem

$message = "An administrator has been emailed about this problem, too.";#set a friendly message
}
echo $website.$_SERVER['REQUEST_URI']; ?> and it doesn't exist. <?php echo $message; ?> Try searching below.

Alternative to Step 2.

If for some reason this plug-in won’t work, an alternate plug-in can be used.if-404-email-me.zip (4)

Extract and activate plug-in directory . Add the function to 404.php inside your theme folder.

1
<?php if(function_exists(if_error_send_mail)) if_error_send_mail(); ?>

Enhancing your 404 page is plain in simple. Remember that an attractive 404 page is important to your visitors.

Related posts:

  1. Posting Author Information in Wordpress: 3 Simple Steps
  2. Wordpress Theme Tester
  3. 15 Under Utilized Wordpress SEO Plugins
  4. Common SEO Mistakes Bloggers Make – Part 1
  5. Upgrading WordPress to WordPress 2.8x
Buy website theme @ theme forest

Popular Posts


Leave Your Response

* Name, Email, Comment are Required
WooThemes - WordPress themes for everyone

Bluehost - Levoltz hosting

Submit News





Captcha
To prevent spam, please type the text (all uppercase) from this image in the textbox below.

Community News

  • 6 of the Best Android Mobile DevicesFebruary 7, 2010

    Android is the name given to a mobile operating system using a customised version of the Linux kernel. It was first released in late 2008. The platform enables developers to write code in the Java …

  • 15 Valentine’s Day Photoshop TutorialsFebruary 5, 2010

    Here is a roundup of 15 Photoshop tutorials to draw inspiration from, when designing your own pretty greeting card or wallpaper for your loved one.

  • 42 Striking Examples Of Snowboard DesignsFebruary 5, 2010

    Since its Winter season, i decided to make a corresponding post. Today i bring you a showcase of snowboard designs. Snowboard design has become very popular. Almost every snowboarding company, now …

  • MoneyBook App – GiveAwayFebruary 2, 2010

    The gorgeous Guy’s from Noidentity we’re so nice and gave us 4 Free MoneyBook Apps for you to win! The simple and elegant way to track and manage your finances. Your budget at a glance and your…

  • Free Download Winter Theme for Nokia N-81February 1, 2010

    Snow falling… so soft and cold, it’s winter time. Put them as your theme, here is Winter theme for Nokia N81. Download Winter theme now and install to your Nokia N81 phone. be soft.. be cool.

Category Based Feeds

  • Blog XML Feed (92)
  • Downloads XML Feed (92)
  • Events XML Feed (63)
  • Extras XML Feed (136)
  • Gadgets XML Feed (53)
  • Graphics XML Feed (33)
  • How-To XML Feed (214)