Forum Moderators: open

Message Too Old, No Replies

inktomi.com as domain referrer hits tons of 404 at my sites

Experience the same?

         

adfree

10:59 am on Nov 26, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Weird, yesterday my traffic increased dramatically with 4 out of 11 sites SOme trippled. . My stats software reports the additional traffic as no referrers (means: can't read it).

Though: when checking the domains that refer to my sites inktomi.com pops up like crazy hitting pages that do not exist, everything lands on my customized 404 page which is better than not having one because it converts a little too.

Anyone with same results out there? What could it be? Old index not finding pages that have been removed?

Thanks, Jens

davidpbrown

12:13 pm on Nov 26, 2003 (gmt 0)

10+ Year Member



I recognised recently how many visits I loose from old links.

You might want to try this php I use which can potentially catch every 404 from old links.

Obviously you can get them from your 404 logs but also potentially from the search engines. For example, if you search Google site:www.widget.com -qnonsense + include all pages it may show up some old links which don't have description or title just old URL's. Don't know about how you might do this in Ink.

(I'm pasting this in .. beware if the forum changes spacing etc..)

on top of your 404
<?php
$request = $_SERVER['REQUEST_URI'];
include('error-404-config.php');
if ( $request!= '' ) {
$x=0;
while ($x!= $count)
{ if ( $request == $choice[$x] )
{ $redirect = $target[$x];
header("HTTP/1.1 301 Moved Permanently");
header("Location: " . $domain . $redirect );
exit;
}
$x++;
}
}
?>

file error-404-config.php
<?php
$domain = 'http://www.widget.com/';
$count = '2';
$choice[0] = '/doh.html';
$choice[1] = '/nofound.html';
$choice[2] = '';
$choice[3] = '';
$choice[4] = '';
$choice[5] = '';
$target[0] = 'found.html';
$target[1] = 'itdoesexisit/here.html';
$target[2] = '';
$target[3] = '';
$target[4] = '';
$target[5] = '';
?>

dpb

adfree

10:41 pm on Jan 3, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanksw davidpbrown, haven't had the time yet, but will certainly play around with your script. Appreciate your time!
Jens