<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
is telling the spider to not index the page or follow any links on the page,
which isnt going to get the individual ad page into the index...
<META HTTP-EQUIV="EXPIRES"
CONTENT="Mon, 22 Jul 2002 11:12:01 GMT">
would work if you can get the expire date in gmt and rfc1123, whcih is the format listed.....
or you can change the ad removed page to randomly display links to other ads using the following code.default is set to 10 ads but you can adjust to what you need, this should keep you from tripping any dupe content filters, but usually on dupe content google just picks the page that is thinks is most important and either deindexes or makes the others supplemental results
first on detail.php find this code (lines 773-797 rough estimate actually lines may vary)
<?
}
if ($num_links == 0)
{
include_once("header_inc.php");
include_once("admin/inc.php");
include_once("navigation.php");
print "<p><img border='0' src='images/blank.gif' height='20' align='left'>";
print "<b>$la_ad_removed_caption</b><br>";
echo formatString($la_ad_removed_content,array("http://$url"));
print "</p></td></tr></table>";
include_once("footer_inc.php");
exit;
}
$tell=$sitehits+1;
$s = "UPDATE $ads_tbl set sitehits=$tell,datestamp='$datestamp' where siteid=$siteid";
$result1=q($s);
?>
and change it to this
<?
}
if ($num_links == 0)
{
include_once("header_inc.php");
include_once("admin/inc.php");
include_once("navigation.php");
print "<p><img border='0' src='images/blank.gif' height='20' align='left'>";
print "<b>$la_ad_removed_caption</b><br>";
echo formatString($la_ad_removed_content,array("http://$url"));
print "<br><b>check out our other listings</b><br>";
include "deadads.php" ;
print "</p></td></tr></table>";
include_once("footer_inc.php");
exit;
}
$tell=$sitehits+1;
$s = "UPDATE $ads_tbl set sitehits=$tell,datestamp='$datestamp' where siteid=$siteid";
$result1=q($s);
?>
you can edit the "check out our other listings" text to anything...
now create a file called "deadads.php" and copy and paste the applicable code below
for rewritten urls use this code
<?php
// DEAD AD REPLACEMENT REWRITTEN URLS
// SETTINGS TO BE EDITED
$adnumber = "10"; //number of ads listed on page
$url = "http://www.domain.com/classifieds/" ; // url to directory must have trailing slash
$hostname_sitemap = "localhost"; // mysql location
$database_sitemap = "xxxxxxxxxx"; // mysql database
$username_sitemap = "xxxxxxxxx"; // mysql user
$password_sitemap = "xxxxxxxxx"; // mysql password
//hmmmmm dunno what to say
$sitemap = mysql_pconnect($hostname_sitemap, $username_sitemap, $password_sitemap) or trigger_error(mysql_error(),E_USER_ERROR);
// okay know let's hook up with our base and slide our query in
mysql_select_db($database_sitemap, $sitemap);
$query_Recordset1 = "SELECT * FROM ad ORDER BY RAND() LIMIT 0, $adnumber";
$Recordset1 = mysql_query($query_Recordset1, $sitemap) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
do {
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="42%"><a href="<? echo $url ?><?php echo $row_Recordset1['siteid']; ?>.html" target="_blank"><?php echo $row_Recordset1['sitetitle']; ?></td>
</tr>
</table>
<?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?>
for regular urls use this code
<?php
// DEAD AD REPLACEMENT NORMAL URLS
// SETTINGS TO BE EDITED
$adnumber = "10"; //number of ads listed on page
$url = "http://www.domain.com/classifieds/detail.php?siteid=" ; // url to detail.php?siteid=
$hostname_sitemap = "localhost"; // mysql location
$database_sitemap = "xxxxxxxxxx"; // mysql database
$username_sitemap = "xxxxxxxxx"; // mysql user
$password_sitemap = "xxxxxxxxx"; // mysql password
//hmmmmm dunno what to say
$sitemap = mysql_pconnect($hostname_sitemap, $username_sitemap, $password_sitemap) or trigger_error(mysql_error(),E_USER_ERROR);
// okay know let's hook up with our base and slide our query in
mysql_select_db($database_sitemap, $sitemap);
$query_Recordset1 = "SELECT * FROM ad ORDER BY RAND() LIMIT 0, $adnumber";
$Recordset1 = mysql_query($query_Recordset1, $sitemap) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
do {
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="42%"><a href="<? echo $url ?><?php echo $row_Recordset1['siteid']; ?>" target="_blank"><?php echo $row_Recordset1['sitetitle']; ?></td>
</tr>
</table>
<?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?>
make sure deadads.php is in the same folder as detail.php