Search
Recommended Sites
Related Links






   

Informative Articles

Getting Started with HTML
Copyright 2004 Dean Walden The basic language of the internet is html. If you can do crossword puzzles, if you can write a report for your teacher or boss, you can be creating web pages in a matter of minutes. Even if you're not a...

How Not to Start a Website
Are you planning on making your first website? Then please don't do it this way ! Buy yourself a web editing tool like Dreamweaver, Frontpage - cost: $150 Get a web hosting provider that supports 100G storage, SQL database, PHP, and...

How To Create and Send HTML Newsletters
Copyright 2005 John Jantsch Every now and then a subscriber will ask how I create my newsletter. Fortunately, this request is done in conjunction with a complement I humbly accept. So, I decided to dedicate an entire issue to the creation of an...

Introduction To Cascading Style Sheets
CSS (Cascading Style Sheets) have been around for a while now, and act as a complement to plain old HTML files. Style sheets allow a developer to separate HTML code from formatting rules and styles. It seems like many HTML beginners' under-estimate...

Website Theft - Part 2 of 3 ~ How do I know if my website material has been stolen and what do I do if it has?
(Please note that some of the information included in this article has been quoted from various locations while other information is simply my personal opinion and you will probably feel my passion in my words.) In the first instalment in our...

 
404 Not Found? Turn 404 Error Page into Profit!

Easy way to make money from Error 404.

A 404 error occurs whenever someone requests a URL that is not on your server. Either they have mistyped something, or you moved or deleted a document that used to be on your web site.

So why lost this traffic?

With two-three simple lines of code you can redirect 404 traffic to a sponsor and make money automatically:

sample redirects:

with .htaccess :

404notfoundredirect .htaccess sample #1
#404notfoundredirect
ErrorDocument 404 http://www.yoursponsor.com/?youraffiliateidhere

with .htaccess Apache's mod-rewrite:

404notfoundredirect .htaccess with Apache's mod-rewrite sample #3
If http://www.examplesite.com/url/file.html does not exist,
redirect to http://www.examplesite.com/index.php

Put this in your site .htaccess file:
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) http://www.yoursponsor.com/?youraffiliateidhere

all wrong hits will be redirected to your site http://www.yoursponsor.com/?youraffiliateidhere

with javascript (put this page instead of moved/deleted page on your site)
404notfoundredirect Search Engine-Friendly JavaScript Redirect with Frames - sample #4



Go To Sponsor





<br /><body><br /><a href="http://www.yoursponsor.com/?youraffiliateidhere"><br />Please Visit my site sponsor</a><br /></body><br />


redirect with php:

404notfoundredirect Redirects with PHP - sample #5
<?php
header("Location: http://www.yoursponsor.com/?youraffiliateidhere");
?>

More useful information about .htaccess, redirects, deny/allow
you can find at http://www.404notfoundredirect.com/



About the Author
None

Sign up for PayPal and start accepting credit card payments instantly.