PDA

View Full Version : PhpDig spiders included menu: wrong results


nicor
03-25-2004, 02:44 AM
Please Help :-)

all of our navigation-menus are included via php, but phpdig spiders the sites with menus included. As a result, the search-results are completly wrong, because most of the search keywords are also shown in the menu...

is there a possibility to not index them?

i have tried to built a workarround in the included menues like:

if($_SERVER['HTTP_USER_AGENT'] != "PhpDig") {
//write the menu ;-)
}

but it doesnt work... ;-(

Charter
03-25-2004, 03:21 AM
Hi. Perhaps try the phpExclude and phpInclude comments as in this (http://www.phpdig.net/showthread.php?postid=1982#post1982) thread.

nicor
03-25-2004, 04:43 AM
no, somehow this doesnt work either. Perhaps you can take a look on the source, its www.computerhilfen.de/start.html - i hope i made it that way ;-)

Charter
03-25-2004, 04:58 AM
Hi. The comments need to be each on their own line in the HTML source so try using \n in your PHP code.