![]() |
spidering links but not their text
I've got a bunch of pages with a navigation menu on it, as well as some text I don't want indexed.
I want to exclude everything but a <div> tag that contains all the text I want to index.. However... it seems that if I do that, all of the links in my navigation menu aren't spidered. That is not helpful. How can I get phpDig to spider my entire site, but only index one section of every page? |
Hi. You might try using PHPDIG_EXCLUDE_COMMENT and PHPDIG_INCLUDE_COMMENT from the config file, each on their own line, to exclude a portion of a page. Depending on your navigation menu, it might not be getting indexed because PhpDig excludes certain tags from index. If this is the case, you might try setting up a simple HTML page with links to your site, and then crawl this page. Once the crawl is done, you can delete the simple page from the admin panel.
|
I have a similar problem,
I have a pulldown menu, (div tags) and phpdig pulls all the menu options into the search results, hence most words you would search for are on alll pages. in a big ugly mess. Does phpdig still crawl the links within a PHPDIG_EXCLUDE_COMMENT area even tho it doesnt put these into its database? Thanks |
Hi. The exclude/include comments are for omitting parts of a page from indexing.
|
Yeh, gathered that... does it still spider the links within an excluded part tho...?
Ta |
Hi. Using the below simple example, PhpDig works as follows:
Code:
<html> |
All times are GMT -8. The time now is 12:59 AM. |
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.