Marketing & Advertising Magazine

Custom Designs for 404 Page Not Found Or 301 Redirection To Homepage

Posted on the 15 April 2013 by Altcom @altcomms

Apr 15, 2013

404 error pages happen when users are trying to visit a broken link. The common reasons are mistyped URLs, perhaps the site owner removed the page, or the page never existed. This error page is just as important as any other live page, in its potential to generate additional web traffic and business conversions.

Default 404 Error Page

Custom Designs for 404 Page Not Found or 301 Redirection To Homepage

404 Error Page On Static Website

We can custom design the error page by adding an error code in the .httaccess file, e.g. ErrorDocument 404 http://www.nambeerubber.com/404.html, so any invalid link pointed to nambeerubber.com will be redirected to http://www.nambeerubber.com/404.html

Custom Designs for 404 Page Not Found or 301 Redirection To Homepage

Redirect 404 Error Page to Home Page

Some webmasters request to skip showing the 404 page and immediately redirect to the home page instead.

For static websites, you can add the following code to the .httaccess file, e.g. ErrorDocument 404 http://www.alt.com.my/

For WordPress sites, you go to Dashboard > Appearance > Editor > 404.Template (404.php), and replace it with the example code.

<?php

header(“Status: 301 Moved Permanently”);

header(“Location: http://www.awepay.com/“);

?>

Custom Designs for 404 Page Not Found or 301 Redirection To Homepage


Back to Featured Articles on Logo Paperblog