HTTP 301 Redirect in PHP solution

Well, have you ever been tired when you get message “Error 404 – Page Not Found” on  your websites?
If you are pretty good webmaster or trying at least to become one of the Best, here is what to do. If you love WordPress as much as I do just edit:

404 template (404.php)

Example for www.bonscott.org :

<?php
// Permanent redirection
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://bonscott.org/");
exit();
?>

Get more info and examples about HTTP 301 here

This post was written by

SEO WEBMASTER SWEDEN