Join Today

View Poll Results: Did this help you find your 404 errors?

Voters
2. You may not vote on this poll
  • Yes - I am sending you a BEER!

    1 50.00%
  • Yes - But I would like you to spend the money on Starbux instead

    0 0%
  • No - I have waaaay too many erorrs

    0 0%
  • Sort OF - I already knew about this cuz Ima genous

    1 50.00%
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Join Date
    Mar 2009
    Location
    Toronto
    Posts
    1,393
    Thanks
    231
    Thanked 471 Times in 252 Posts

    Technical Malfunctions Or Complex Sh!t Hello all and a free 404 tip to ya's

    Howdy - having been in marketing for years and I have seen some incredible successes (yeah a couple of failures). But nonetheless, I felt it was high time I stopped writing for others and got down to business. My forte is to look at a clients site and tell them (with tact) what the problem is and why they aren't converting. But I digress, it was high time I put my own madness to my methods (bw?).

    This being the only forum I subscribe to (DP doesn't count.. 8| ) I decided to help those who may be hurting for answers. As I promised the big "N" I would post this. Now, some of you are in the know, and some of you may be wondering "wtf are all these 404 errors?" I came up with a little script to help out with that. You will need to have access to upload to your site, as well I urge you to create an email account named 404error(at)yourdomain.com (weird but I cant put email addresses in here - this may be tougher than I thought to post - ok -I see I can't use an AT symbol so wherever you see (at) replace it with the symbol.

    The new email address will become beneficial as you start to receive prob a hundred emails a day about your site. You may be missing an image, an older file - what have you - once it is up - you're gonna start getting emails... so, set up your email address first - another suggestion is to create a folder and a rule in Outlook so all the 404 error messages get dropped there.

    It will also send you the IP addy of the person or bot attmepting to scope your site - very nice when it appears someone is trying to find your thankyou page. It willl come back and tell you what it was they were looking for...
    So here it comes:
    1. copy this and paste this into a text file (use notepad) - save it as "404error.php"
    2. change the YOURWEBSITENAME.??? to whatever your wbesite name is you are applying this to
    3. Save and upload to the root or directory you wish
    4. edit your .htaccess file by adding this line: ErrorDocument 404 /404error.php
    5. Upload both files to your server and then click on your website - you'll see you can type in whatver crazy crap and it reverts back to the 404 erorr page. You can customize this page as well to fit in your site scheme - go to surviveprisonjail.com and type in something idiotic - you'll see... Yeah - if you like this - buy me a beer, eh!

    (also if you want to fix the 301 redirects you'll have to pm me - it wont show up here - I'm a new noob 8))

    OK - here ya go:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xml:lang="en" lang="en" xmlns="XHTML namespace">
    <head><link rel="shortcut icon" href="favicon.ico" />
    <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
    <title> YOURWEBSITENAME | File Not Found </title>
    <META NAME="copyright" CONTENT="This code is copyright by NC Design | All Rights Reserved">
    <meta name="author" content="NC Design - Free Website Templates | Free HTML Web Templates | Free Website Graphics ">
    </head>
    <body>
    <font size="2" face="arial">
    <b>TITLE OF THE ERROR PAGE</b><br /><br />
    The page you are looking for does not exist. PUT SOMETHING MEANINGFUL IN HERE - OR MAYBE SELL THEM ON AN ITEM</font>
    <?php
    $url = $_SERVER[ "REQUEST_URI" ];
    $referrer = $_SERVER[ "HTTP_REFERER" ];
    if ( $referrer == "" )
    $referrer = "Unknown";
    if ($url!= "/sitemap.rdf"
    && stristr($url, '/_vti_bin/') == FALSE
    && stristr($url, '/sitemap.xml') == FALSE
    && stristr($url, '/MSOffice/clt') == FALSE
    ){
    mail("404_error(at)YOURWEBSITENAME.com", "Problem at YOURWEBSITENAME",
    "Requested Page: " . $url
    . "\r\nReferred By: " . $referrer
    . "\r\nRemote Addr: " . $_SERVER["REMOTE_ADDR"] . " (" . $_SERVER["REMOTE_HOST"] . ")"
    . "\r\n"
    . "Cookies: \r\n"
    . implode(",", $_COOKIE)
    . "\r\nRequested URL: YOURWEBSITENAME.com " . $_SERVER["REQUEST_URI"]
    . "\r\n"
    ,"From: potentialcustomer(at)YOURWEBSITENAME.com" );
    }
    ?>
    </body>
    </html>

    Did I mention I like beer???
    Last edited by bluffspot; 03-23-2009 at 12:09 PM. Reason: seplling

  2. #2
    Join Date
    Oct 2007
    Posts
    5,315
    Thanks
    1,667
    Thanked 1,940 Times in 825 Posts

    Default Re: Hello all and a free 404 tip to ya's

    Cheers bluff,

    Great way to enter the community, welcome to the family +50 rep.
    N.



    No Of Course You Can't Do That Here << READ THE RULES

    "You can sell dogshit if you package it right, doesn't mean it will taste good or that your customer will be satisfied, but you can! You can also have a hard time giving FREE GOLD away if it's covered in dogshit or not packaged right".

  3. #3
    Join Date
    Mar 2009
    Location
    USA
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Hello all and a free 404 tip to ya's

    I think I get it, but I'm still a little fuzzy here. Why do I need to do this again? I've created the email address and I can post up the HTML no problem.

    Now, if I could only drive 100 visitors a day to the site!

    Thanks for the great info! Sorry I'm a little slow today....
    Tek

  4. #4
    Join Date
    Mar 2009
    Location
    Toronto
    Posts
    1,393
    Thanks
    231
    Thanked 471 Times in 252 Posts

    Default Re: Hello all and a free 404 tip to ya's

    Hi Teknokon - the idea behind this was to see what issues your site was having -
    example:
    1. Are you missing an image somewhere?
    2. Are you missign a page
    3. Do you have a wrong link listed somewhere?
    4. If you were a customer and got a 404 error - Page Missing -- consider the sale lost
    5. No more 404 erorrs - I don't think search engines like them and I would wager it has an effect on your PR
    6 - Most Important - You can tell what idiot is trying to find your secret location for your product.

    Basically, you'll recieve an email about every little problem a person who enters your site encounters. Definitely helps when diagnosing problems. Often I am done creating at about 3am - by 7 I know what I screwed up (really, it happens... I screw up... honestly). So you start with email #1 and go fix the problem - work your way through the emails and the site is impeccable.

    Don't forget to add this line in your .htaccess file: ErrorDocument 404 /404error.php

  5. #5
    Join Date
    Oct 2008
    Location
    Ozzie
    Posts
    821
    Thanks
    50
    Thanked 39 Times in 22 Posts

    Default Re: Hello all and a free 404 tip to ya's

    good stuff.

    teknokon, this is just to catch those few visitors that might be getting a 404 from your site for any reason. if you just leave it with the default 404 then you're losing that lead. if you can capture them with an attention grabbing 404 page then you might not lose them!

  6. #6
    Join Date
    Oct 2008
    Location
    Ozzie
    Posts
    821
    Thanks
    50
    Thanked 39 Times in 22 Posts

    Default Re: Hello all and a free 404 tip to ya's

    oh wow too slow huhuh.

  7. #7
    Join Date
    Mar 2009
    Location
    USA
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts

    WoooOoT!! Re: Hello all and a free 404 tip to ya's

    Thanks, guys! I get it now. Very cool! I'll use it


 

Similar Threads

  1. TIP to get 25 free links everyday- Just 2 mints of work- 100% free
    By SQUIDOO in forum Free Tools To Download/Use
    Replies: 3
    Last Post: 08-08-2011, 03:52 PM
  2. Here is a site that give away free affiliate tools and free software
    By jimmylarge in forum Free Tools To Download/Use
    Replies: 3
    Last Post: 03-01-2011, 01:27 AM
  3. Free FONTS - Free Buttons - Free logos - Cool Free Site
    By bluffspot in forum The Bar/Lounge
    Replies: 5
    Last Post: 03-08-2010, 11:06 PM
  4. Noobs! - List of Reliable FREE Hosting Providers! Ads Free!
    By inzpiration in forum Free Tools To Download/Use
    Replies: 3
    Last Post: 12-06-2008, 01:50 PM
  5. Free Minisite Creator - Database Free
    By fastR in forum Free Tools To Download/Use
    Replies: 5
    Last Post: 09-05-2008, 01:08 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts