![]() |
Indexing META-Tags
Version 1.6.2 with php 4.3.2 is indexing META-Tags "description", "DC.subject" and "keywords" - Is it just the same reason as indexing HTML-Comments :confused:
I think this part don't work with PHP > 4.3.2 (robot_functions.php) Code:
//delete content of head, script, and style tags Code:
<head><!-- ID 566789 - generated by CMS --> |
Quote:
PHP Code:
|
Hi,
The "head" regex SHOULD filter everything between <head> and </head>. This includes every meta-tag! But there is a problem if someone do not set the </head> correct. The problem with most of the available http indexing search engines ist that they think that every site is using perfect html markup - but this is not realistic :-( Bernhard |
Thanks, missed that line, and I even quoted it. ;)
|
Quote:
The Site with this HEAD is checked as Valid HTML 4.01 at www.W3C.org ? -Roland- |
Oh yes your markup is correct - My eyes were shut when I've wrote my reply, sorry!
But wrong markup is a general problem - every parser has this problem :-( By the way: Should'nt the line $text = eregi_replace("<head[^<>]*>.*</head>"," ",$text); look like this (as every other line in your quote): $text = eregi_replace("<head[^>]*>.*</head>"," ",$text); Or why we need this additional '<'? Bernhard |
Okay, i have spend a little time again in this problem :)
phpdig is only indexing this two META-tags: <META NAME="description" CONTENT="Informationen, and your description here is indexing"> <META NAME="keywords" CONTENT="This, keywords, here, are, indexing, allin, PHPDIG "> admin\robot_functions.php (755): PHP Code:
|
Hi. You should just be able to comment that piece of code out to remove the indexing of the two meta tags mentioned. As always, try it on a demo page first. ;)
|
All times are GMT -8. The time now is 09:22 PM. |
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.