PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > How-to Forum

Reply
 
Thread Tools
Old 03-30-2004, 02:53 AM   #1
lighthouse
Green Mole
 
Join Date: Mar 2004
Posts: 20
Index just one page ??

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
lighthouse is offline   Reply With Quote
Old 03-30-2004, 08:13 AM   #2
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Hi. Perhaps try the following.

In spider.php find:
PHP Code:
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:
PHP Code:
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.
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PhpDig seems to only index one link per page McVirusS Troubleshooting 7 03-15-2005 09:11 AM
How to index one page and nothing else kristian How-to Forum 10 02-17-2005 03:01 AM
Reindexing site won't index certain page gman Troubleshooting 4 08-06-2004 01:05 PM
Any Idea how i can index this page? marid Troubleshooting 1 04-10-2004 03:02 PM
Exclude index page teostress How-to Forum 1 12-16-2003 08:53 AM


All times are GMT -8. The time now is 07:48 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.