PDA

View Full Version : Index just one page ??


lighthouse
03-30-2004, 02:53 AM
I want to index (spider) just 1 specific page within a website:

eg: http://thedomain.com/news.htm

However - when I add that domain to the admin form, and choose a Search depth of 0 (or anything), it begins to spider from the domain's root level... - ie: it starts at http://thedomain.com

Therefore it doesn't actually spider the page I want.

Please help!!!!!
Thanks
Gary

Charter
03-30-2004, 08:13 AM
Hi. Perhaps try the following.

In spider.php find:

if ($mode != 'small') {
$query_tempspider = "INSERT INTO ".PHPDIG_DB_PREFIX."tempspider (site_id,file,path) SELECT site_id,file,path FROM ".PHPDIG_DB_PREFIX."spider WHERE site_id=$site_id $andmore_tempspider";
mysql_query($query_tempspider,$id_connect);
}
else {
$force_first_reindex = 1;
}

and replace with:

if ($mode != 'small') {
/*
$query_tempspider = "INSERT INTO ".PHPDIG_DB_PREFIX."tempspider (site_id,file,path) SELECT site_id,file,path FROM ".PHPDIG_DB_PREFIX."spider WHERE site_id=$site_id $andmore_tempspider";
mysql_query($query_tempspider,$id_connect);
*/
}
else {
$force_first_reindex = 1;
}

Remember to remove any "word" wrapping in the above code.