Avoid Losing Thousands of Dollars From Your Website
Imagine this scenario.
You?ve just released a new product onto the web. You?ve sent out all the marketing material and you?ve signed up as many affiliates as possible and sit back, grab your favorite beverage and wait for the dollars to roll in.
You wait, and you wait.. Nothing.. Not a single sale..
You then think "I'll give it another hour and two and see if anything happens then". You know your affiliates have been promoting your product, you?ve been getting the emails, but no sales have occurred..
You start to think maybe something is wrong with your site. So you decide to click on a link in one of your affiliates email and you get the dreaded "404 - File not Found error".
Then you suddenly realize that the link you gave all your affiliates was wrong. You told them to visit yourdomain.com/specialoffer.html but the real location is yourdomain.com/special-offer.html
So you dash into your site with your FTP tool and quickly rename the page to the new name, and within minutes sales start coming in..
Phew.. But how many lost sales? How many thousands of dollars have you just lost??
It freighting, and it can happen so easily..
Wouldn?t it have be good to have some sort of safe guard in place, that sent you an email when the error first occurred with the very first visitor.
Well, there is such a tool. Im going to show you how to implement it for FREE and very easy to setup.
To make this work we need to modify our sites .htaccess file (this file lives in the root directory of your hosting account).
If you don?t have a .htaccess simply make one using notepad (For more information on this see http://www.websitesecrets101.com/3/creating-a-custom-404-error-page/ )
Then add the following line to bottom of the file.
ErrorDocument 404 /404error.php
Save the file and update your server.
Now we need to make the 404error.php file..
Simply open Notepad on your PC and paste in the following code : <?php</p><p>$email = "you@yourisp.com";</p><p>$host='http://'.<html> <head> <meta name="GENERATOR" content="Microsoft FrontPage 5.0"> <meta name="ProgId" content="FrontPage.Editor.Document"> <title>Instant Internet Business Resource for Blogging, RSS, Ezines, Affiliates, E-Commerce, & More!</title> <meta NAME="description" CONTENT="Instant Internet Business Resource for Blogging, RSS, Ezines, Affiliates, E-Commerce, & More!"> <meta NAME="keywords" CONTENT="internet business, blogging, rss, affiliates, e-commerce, ezine marketing, ebooks, email marketing, ezine marketing, web design, web-hosting, site promotion, affiliate programs, podcasting, seo, internet marketing"> <meta NAME="revisit-after" CONTENT="7 days"> <meta NAME="robots" CONTENT="index, follow"> <meta NAME="rating" content="general"> <meta NAME="distribution" content="global"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> </head> <body bgcolor="#FFFFFF" text="#000000" background="images/blue-back-internet-business.jpg"> <div align="center"> <center> <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#00096F" width="800" bgcolor="#FFFFFF"> <tr> <td width="600" colspan="3"> <img border="0" src="images/blue-header-internet-business.jpg" width="800" height="171" alt="Your Instant Internet Business Resource"></td> </tr> <tr> <td width="130" align="center" valign="top" height="50"><br> <p align="center" style="margin-top: 0; margin-bottom: 0"><u><b>Related Links</b></u></p> <p><br> <script type="text/javascript"><!-- google_ad_client = "pub-6614906476611365"; google_ad_width = 120; google_ad_height = 90; google_ad_format = "120x90_0ads_al_s"; google_ad_channel =""; google_color_border = "FFFFFF"; google_color_bg = "FFFFFF"; google_color_link = "0000FF"; google_color_url = "AAAAAA"; google_color_text = "000000"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </td> <td valign="top" rowspan="2" style="margin-top: 10; margin-bottom: 10" width="540"> <br> <center> <!-- SiteSearch Google --> <form method="get" action="http://www.google.com/custom" target="_blank"> <table border="0" bgcolor="#ffffff"> <tr> <td nowrap="nowrap" valign="top" align="left" height="32"> <a href="http://www.google.com/"> <img src="http://www.google.com/logos/Logo_25wht.gif" border="0" alt="Google" align="middle" width="75" height="32"></a> </td> <td nowrap="nowrap"> <input type="hidden" name="domains" value="www.cas-internet-business.com"> <input type="text" name="q" size="30" maxlength="255" value> <input type="submit" name="sa" value="Search"> </td> </tr> <tr> <td> </td> <td nowrap="nowrap"> <table> <tr> <td> <input type="radio" name="sitesearch" value checked="checked"> <font size="-1" color="#000000">Web</font> </td> <td> <input type="radio" name="sitesearch" value="www.cas-internet-business.com"> <font size="-1" color="#000000">www.cas-internet-business.com</font> </td> </tr> </table> <input type="hidden" name="client" value="pub-6614906476611365"> <input type="hidden" name="forid" value="1"> <input type="hidden" name="ie" value="ISO-8859-1"> <input type="hidden" name="oe" value="ISO-8859-1"> <input type="hidden" name="cof" value="GALT:#008000;GL:1;DIV:#FFFFFF;VLC:663399;AH:center;BGC:FFFFFF;LBGC:FFFFFF;ALC:0000FF;LC:0000FF;T:000000;GFNT:0000FF;GIMP:0000FF;FORID:1;"> <input type="hidden" name="hl" value="en"></td> </tr> </table> </form> <!-- SiteSearch Google --></center> <p><br> </p> <h1 align="center" style="margin: 0 10"><b><!---BEGIN Title--->Avoid Losing Thousands of Dollars From Your Website<!---END Title---></b></h1> <p align="center" style="margin: 0 10"><br> By: <b><!---BEGIN Author--->Bruce Hearder<!---END Author---></b> </p> <p><br> </p> <center> <script type="text/javascript"><!-- google_ad_client = "pub-6614906476611365"; google_ad_width = 336; google_ad_height = 280; google_ad_format = "336x280_as"; google_ad_type = "text_image"; google_ad_channel =""; google_color_border = "FFFFFF"; google_color_bg = "FFFFFF"; google_color_link = "0000FF"; google_color_url = "AAAAAA"; google_color_text = "000000"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </center> <p><br> </p> <div align="center"> <center> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="500"> <tr> <td width="500">%ARTICLEBODY%</td> </tr> </table> </center> </div> <p align="justify" style="line-height: 200%; margin: 0 20"> </p> <p align="center" style="margin: 0 10"> </p> <p align="center" style="margin: 0 10"> <script type="text/javascript"><!-- google_ad_client = "pub-6614906476611365"; google_ad_width = 468; google_ad_height = 60; google_ad_format = "468x60_as"; google_ad_type = "text_image"; google_ad_channel =""; google_color_border = "FFFFFF"; google_color_bg = "FFFFFF"; google_color_link = "0000FF"; google_color_url = "AAAAAA"; google_color_text = "000000"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </p> <p align="center" style="margin: 0 10"><br> <a href="index.html"> <img border="0" src="images/blue-home.jpg" alt="Instant Internet Business Resource Home Page" width="150" height="40"></a></p> <p align="center" style="margin: 0 10"></p> <p align="center" style="margin: 0 10"><br> <!--- NewNetMail Link Code Starts---> <a HREF="http://clarkswihart.com/recommends/Private-Mail" target="_blank"> <img SRC="http://www.newnetmail.com/banners/nnm_banner1.gif" BORDER="0" ALT="NewNetMail" width="468" height="60"></a> <!--- NewNetMail Link Code Ends---></p> <p><br> </td> <td width="130" align="center" valign="top" style="word-spacing: 0; text-indent: 0; line-height: 100%; text-align: center; margin: 0" rowspan="2"> <br> <script type="text/javascript"><!-- google_ad_client = "pub-6614906476611365"; google_ad_width = 120; google_ad_height = 600; google_ad_format = "120x600_as"; google_ad_type = "text_image"; google_ad_channel =""; google_color_border = "FFFFFF"; google_color_bg = "FFFFFF"; google_color_link = "0000FF"; google_color_url = "AAAAAA"; google_color_text = "000000"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </td> </tr> <tr> <td width="130" align="center" valign="bottom"> <iframe src="http://rcm.amazon.com/e/cm?t=theawristocra-20&o=1&p=11&l=st1&mode=books&search=internet%20business%2C%20online%20business&=1&fc1=<1=&lc1=&bg1=&f=ifr" marginwidth="0" marginheight="0" width="120" height="600" border="0" frameborder="0" style="border:none;" scrolling="no"> </iframe></td> </tr> <tr> <td colspan="3" bgcolor="#00096F" align="center" height="20"> <span class="text"><b><font size="2" color="#FFFFFF"> <span style="font-size: 12px; line-height: 15px">Copyright 2006 <a title="Your Instant Internet Business Resource" href="http://www.cas-internet-business.com/"><font color="#FFFFFF"> www.cas-internet-business.com</font></a> - All Rights Reserved</span></font></b></span></td> </tr> </table> </center> </div> </body> </html>SERVER["HTTP_HOST"]; $url = $host.<html> <head> <meta name="GENERATOR" content="Microsoft FrontPage 5.0"> <meta name="ProgId" content="FrontPage.Editor.Document"> <title>Instant Internet Business Resource for Blogging, RSS, Ezines, Affiliates, E-Commerce, & More!</title> <meta NAME="description" CONTENT="Instant Internet Business Resource for Blogging, RSS, Ezines, Affiliates, E-Commerce, & More!"> <meta NAME="keywords" CONTENT="internet business, blogging, rss, affiliates, e-commerce, ezine marketing, ebooks, email marketing, ezine marketing, web design, web-hosting, site promotion, affiliate programs, podcasting, seo, internet marketing"> <meta NAME="revisit-after" CONTENT="7 days"> <meta NAME="robots" CONTENT="index, follow"> <meta NAME="rating" content="general"> <meta NAME="distribution" content="global"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> </head> <body bgcolor="#FFFFFF" text="#000000" background="images/blue-back-internet-business.jpg"> <div align="center"> <center> <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#00096F" width="800" bgcolor="#FFFFFF"> <tr> <td width="600" colspan="3"> <img border="0" src="images/blue-header-internet-business.jpg" width="800" height="171" alt="Your Instant Internet Business Resource"></td> </tr> <tr> <td width="130" align="center" valign="top" height="50"><br> <p align="center" style="margin-top: 0; margin-bottom: 0"><u><b>Related Links</b></u></p> <p><br> <script type="text/javascript"><!-- google_ad_client = "pub-6614906476611365"; google_ad_width = 120; google_ad_height = 90; google_ad_format = "120x90_0ads_al_s"; google_ad_channel =""; google_color_border = "FFFFFF"; google_color_bg = "FFFFFF"; google_color_link = "0000FF"; google_color_url = "AAAAAA"; google_color_text = "000000"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </td> <td valign="top" rowspan="2" style="margin-top: 10; margin-bottom: 10" width="540"> <br> <center> <!-- SiteSearch Google --> <form method="get" action="http://www.google.com/custom" target="_blank"> <table border="0" bgcolor="#ffffff"> <tr> <td nowrap="nowrap" valign="top" align="left" height="32"> <a href="http://www.google.com/"> <img src="http://www.google.com/logos/Logo_25wht.gif" border="0" alt="Google" align="middle" width="75" height="32"></a> </td> <td nowrap="nowrap"> <input type="hidden" name="domains" value="www.cas-internet-business.com"> <input type="text" name="q" size="30" maxlength="255" value> <input type="submit" name="sa" value="Search"> </td> </tr> <tr> <td> </td> <td nowrap="nowrap"> <table> <tr> <td> <input type="radio" name="sitesearch" value checked="checked"> <font size="-1" color="#000000">Web</font> </td> <td> <input type="radio" name="sitesearch" value="www.cas-internet-business.com"> <font size="-1" color="#000000">www.cas-internet-business.com</font> </td> </tr> </table> <input type="hidden" name="client" value="pub-6614906476611365"> <input type="hidden" name="forid" value="1"> <input type="hidden" name="ie" value="ISO-8859-1"> <input type="hidden" name="oe" value="ISO-8859-1"> <input type="hidden" name="cof" value="GALT:#008000;GL:1;DIV:#FFFFFF;VLC:663399;AH:center;BGC:FFFFFF;LBGC:FFFFFF;ALC:0000FF;LC:0000FF;T:000000;GFNT:0000FF;GIMP:0000FF;FORID:1;"> <input type="hidden" name="hl" value="en"></td> </tr> </table> </form> <!-- SiteSearch Google --></center> <p><br> </p> <h1 align="center" style="margin: 0 10"><b><!---BEGIN Title--->Avoid Losing Thousands of Dollars From Your Website<!---END Title---></b></h1> <p align="center" style="margin: 0 10"><br> By: <b><!---BEGIN Author--->Bruce Hearder<!---END Author---></b> </p> <p><br> </p> <center> <script type="text/javascript"><!-- google_ad_client = "pub-6614906476611365"; google_ad_width = 336; google_ad_height = 280; google_ad_format = "336x280_as"; google_ad_type = "text_image"; google_ad_channel =""; google_color_border = "FFFFFF"; google_color_bg = "FFFFFF"; google_color_link = "0000FF"; google_color_url = "AAAAAA"; google_color_text = "000000"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </center> <p><br> </p> <div align="center"> <center> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="500"> <tr> <td width="500">%ARTICLEBODY%</td> </tr> </table> </center> </div> <p align="justify" style="line-height: 200%; margin: 0 20"> </p> <p align="center" style="margin: 0 10"> </p> <p align="center" style="margin: 0 10"> <script type="text/javascript"><!-- google_ad_client = "pub-6614906476611365"; google_ad_width = 468; google_ad_height = 60; google_ad_format = "468x60_as"; google_ad_type = "text_image"; google_ad_channel =""; google_color_border = "FFFFFF"; google_color_bg = "FFFFFF"; google_color_link = "0000FF"; google_color_url = "AAAAAA"; google_color_text = "000000"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </p> <p align="center" style="margin: 0 10"><br> <a href="index.html"> <img border="0" src="images/blue-home.jpg" alt="Instant Internet Business Resource Home Page" width="150" height="40"></a></p> <p align="center" style="margin: 0 10"></p> <p align="center" style="margin: 0 10"><br> <!--- NewNetMail Link Code Starts---> <a HREF="http://clarkswihart.com/recommends/Private-Mail" target="_blank"> <img SRC="http://www.newnetmail.com/banners/nnm_banner1.gif" BORDER="0" ALT="NewNetMail" width="468" height="60"></a> <!--- NewNetMail Link Code Ends---></p> <p><br> </td> <td width="130" align="center" valign="top" style="word-spacing: 0; text-indent: 0; line-height: 100%; text-align: center; margin: 0" rowspan="2"> <br> <script type="text/javascript"><!-- google_ad_client = "pub-6614906476611365"; google_ad_width = 120; google_ad_height = 600; google_ad_format = "120x600_as"; google_ad_type = "text_image"; google_ad_channel =""; google_color_border = "FFFFFF"; google_color_bg = "FFFFFF"; google_color_link = "0000FF"; google_color_url = "AAAAAA"; google_color_text = "000000"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </td> </tr> <tr> <td width="130" align="center" valign="bottom"> <iframe src="http://rcm.amazon.com/e/cm?t=theawristocra-20&o=1&p=11&l=st1&mode=books&search=internet%20business%2C%20online%20business&=1&fc1=<1=&lc1=&bg1=&f=ifr" marginwidth="0" marginheight="0" width="120" height="600" border="0" frameborder="0" style="border:none;" scrolling="no"> </iframe></td> </tr> <tr> <td colspan="3" bgcolor="#00096F" align="center" height="20"> <span class="text"><b><font size="2" color="#FFFFFF"> <span style="font-size: 12px; line-height: 15px">Copyright 2006 <a title="Your Instant Internet Business Resource" href="http://www.cas-internet-business.com/"><font color="#FFFFFF"> www.cas-internet-business.com</font></a> - All Rights Reserved</span></font></b></span></td> </tr> </table> </center> </div> </body> </html>SERVER["REQUEST_URI"]; $referrer = trim(<html> <head> <meta name="GENERATOR" content="Microsoft FrontPage 5.0"> <meta name="ProgId" content="FrontPage.Editor.Document"> <title>Instant Internet Business Resource for Blogging, RSS, Ezines, Affiliates, E-Commerce, & More!</title> <meta NAME="description" CONTENT="Instant Internet Business Resource for Blogging, RSS, Ezines, Affiliates, E-Commerce, & More!"> <meta NAME="keywords" CONTENT="internet business, blogging, rss, affiliates, e-commerce, ezine marketing, ebooks, email marketing, ezine marketing, web design, web-hosting, site promotion, affiliate programs, podcasting, seo, internet marketing"> <meta NAME="revisit-after" CONTENT="7 days"> <meta NAME="robots" CONTENT="index, follow"> <meta NAME="rating" content="general"> <meta NAME="distribution" content="global"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> </head> <body bgcolor="#FFFFFF" text="#000000" background="images/blue-back-internet-business.jpg"> <div align="center"> <center> <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#00096F" width="800" bgcolor="#FFFFFF"> <tr> <td width="600" colspan="3"> <img border="0" src="images/blue-header-internet-business.jpg" width="800" height="171" alt="Your Instant Internet Business Resource"></td> </tr> <tr> <td width="130" align="center" valign="top" height="50"><br> <p align="center" style="margin-top: 0; margin-bottom: 0"><u><b>Related Links</b></u></p> <p><br> <script type="text/javascript"><!-- google_ad_client = "pub-6614906476611365"; google_ad_width = 120; google_ad_height = 90; google_ad_format = "120x90_0ads_al_s"; google_ad_channel =""; google_color_border = "FFFFFF"; google_color_bg = "FFFFFF"; google_color_link = "0000FF"; google_color_url = "AAAAAA"; google_color_text = "000000"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </td> <td valign="top" rowspan="2" style="margin-top: 10; margin-bottom: 10" width="540"> <br> <center> <!-- SiteSearch Google --> <form method="get" action="http://www.google.com/custom" target="_blank"> <table border="0" bgcolor="#ffffff"> <tr> <td nowrap="nowrap" valign="top" align="left" height="32"> <a href="http://www.google.com/"> <img src="http://www.google.com/logos/Logo_25wht.gif" border="0" alt="Google" align="middle" width="75" height="32"></a> </td> <td nowrap="nowrap"> <input type="hidden" name="domains" value="www.cas-internet-business.com"> <input type="text" name="q" size="30" maxlength="255" value> <input type="submit" name="sa" value="Search"> </td> </tr> <tr> <td> </td> <td nowrap="nowrap"> <table> <tr> <td> <input type="radio" name="sitesearch" value checked="checked"> <font size="-1" color="#000000">Web</font> </td> <td> <input type="radio" name="sitesearch" value="www.cas-internet-business.com"> <font size="-1" color="#000000">www.cas-internet-business.com</font> </td> </tr> </table> <input type="hidden" name="client" value="pub-6614906476611365"> <input type="hidden" name="forid" value="1"> <input type="hidden" name="ie" value="ISO-8859-1"> <input type="hidden" name="oe" value="ISO-8859-1"> <input type="hidden" name="cof" value="GALT:#008000;GL:1;DIV:#FFFFFF;VLC:663399;AH:center;BGC:FFFFFF;LBGC:FFFFFF;ALC:0000FF;LC:0000FF;T:000000;GFNT:0000FF;GIMP:0000FF;FORID:1;"> <input type="hidden" name="hl" value="en"></td> </tr> </table> </form> <!-- SiteSearch Google --></center> <p><br> </p> <h1 align="center" style="margin: 0 10"><b><!---BEGIN Title--->Avoid Losing Thousands of Dollars From Your Website<!---END Title---></b></h1> <p align="center" style="margin: 0 10"><br> By: <b><!---BEGIN Author--->Bruce Hearder<!---END Author---></b> </p> <p><br> </p> <center> <script type="text/javascript"><!-- google_ad_client = "pub-6614906476611365"; google_ad_width = 336; google_ad_height = 280; google_ad_format = "336x280_as"; google_ad_type = "text_image"; google_ad_channel =""; google_color_border = "FFFFFF"; google_color_bg = "FFFFFF"; google_color_link = "0000FF"; google_color_url = "AAAAAA"; google_color_text = "000000"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </center> <p><br> </p> <div align="center"> <center> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="500"> <tr> <td width="500">%ARTICLEBODY%</td> </tr> </table> </center> </div> <p align="justify" style="line-height: 200%; margin: 0 20"> </p> <p align="center" style="margin: 0 10"> </p> <p align="center" style="margin: 0 10"> <script type="text/javascript"><!-- google_ad_client = "pub-6614906476611365"; google_ad_width = 468; google_ad_height = 60; google_ad_format = "468x60_as"; google_ad_type = "text_image"; google_ad_channel =""; google_color_border = "FFFFFF"; google_color_bg = "FFFFFF"; google_color_link = "0000FF"; google_color_url = "AAAAAA"; google_color_text = "000000"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </p> <p align="center" style="margin: 0 10"><br> <a href="index.html"> <img border="0" src="images/blue-home.jpg" alt="Instant Internet Business Resource Home Page" width="150" height="40"></a></p> <p align="center" style="margin: 0 10"></p> <p align="center" style="margin: 0 10"><br> <!--- NewNetMail Link Code Starts---> <a HREF="http://clarkswihart.com/recommends/Private-Mail" target="_blank"> <img SRC="http://www.newnetmail.com/banners/nnm_banner1.gif" BORDER="0" ALT="NewNetMail" width="468" height="60"></a> <!--- NewNetMail Link Code Ends---></p> <p><br> </td> <td width="130" align="center" valign="top" style="word-spacing: 0; text-indent: 0; line-height: 100%; text-align: center; margin: 0" rowspan="2"> <br> <script type="text/javascript"><!-- google_ad_client = "pub-6614906476611365"; google_ad_width = 120; google_ad_height = 600; google_ad_format = "120x600_as"; google_ad_type = "text_image"; google_ad_channel =""; google_color_border = "FFFFFF"; google_color_bg = "FFFFFF"; google_color_link = "0000FF"; google_color_url = "AAAAAA"; google_color_text = "000000"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </td> </tr> <tr> <td width="130" align="center" valign="bottom"> <iframe src="http://rcm.amazon.com/e/cm?t=theawristocra-20&o=1&p=11&l=st1&mode=books&search=internet%20business%2C%20online%20business&=1&fc1=<1=&lc1=&bg1=&f=ifr" marginwidth="0" marginheight="0" width="120" height="600" border="0" frameborder="0" style="border:none;" scrolling="no"> </iframe></td> </tr> <tr> <td colspan="3" bgcolor="#00096F" align="center" height="20"> <span class="text"><b><font size="2" color="#FFFFFF"> <span style="font-size: 12px; line-height: 15px">Copyright 2006 <a title="Your Instant Internet Business Resource" href="http://www.cas-internet-business.com/"><font color="#FFFFFF"> www.cas-internet-business.com</font></a> - All Rights Reserved</span></font></b></span></td> </tr> </table> </center> </div> </body> </html>SERVER["HTTP_REFERER"]);</p><p>if ($url != 'favico.ico' and $url != 'robots.txt') { if ($referrer == '') $referrer = 'An Unknown source OR someone who directly keyed in the link '; else $referrer="<a href="$referrer">$referrer</a>"; $subject = '404 Error on '.$host; $message = 'Hi</p><p>A visitor from '.$referrer.' tried unsuccessfully to access '.$url.' You may want to try and fix this error';</p><p>$headers = 'MIME-Version: 1.0'.?rn?; $headers .= 'Content-type: text/html; charset=iso-8859-1'.?rn?; $headers .= 'From: 404 Watcher'.?rn?;</p><p>mail($email,$subject,$message,$headers); } header(?HTTP/1.1 404 Not Found?); header(?Location: ?.$host); ?></p><p>
Make sure that you change the line that starts with $email to have your email address. No one on the web will see that email address. It is the address that you want all the errors sent to.
Save the file and copy 404error.php file up to your web site?s root document.
Now try it out. Try typing in a filename that does not exist like yourdomain.com/garbage.html and see what happens.
The user will get redirected to the home page of the site and an email containing the error message will be sent to you.
Its now up to you to fix any errors that might occur and saves yourself thousands of lost dollars in lost sales..
Bruce Hearder owns and run http://www.WebsiteSecrets101.com
Signup for the WebSiteSecrets101 newsletter, and learn the tricks webmasters use on their sites.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home