Rolandks
10-09-2003, 01:03 AM
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)
//delete content of head, script, and style tags
$text = eregi_replace("<head[^<>]*>.*</head>"," ",$text);
$text = eregi_replace("<script[^>]*>.*</script>"," ",$text);
$text = eregi_replace("<style[^>]*>.*</style>"," ",$text);
// clean tags
$text = eregi_replace("(</?[a-z0-9 ]+>)",'\1 ',$text);
Try a Site with this META:
<head><!-- ID 566789 - generated by CMS -->
<!-- Global Meta Beginn, Template: meta.tpl -->
<META http-equiv="content-type" content="text/html;charset=ISO-8859-1">
<META HTTP-EQUIV="Content-Language" CONTENT="de">
<META NAME="description" CONTENT="Informationen, and your description here is indexing">
<META NAME="keywords" CONTENT="This, keywords, here, are, indexing, allin, PHPDIG ">
<META NAME="publisher" CONTENT="This is also indexing">
<META NAME="copyright" CONTENT="This is also indexing">
<META NAME="creation_Date" CONTENT="11/04/2003">
<META NAME="expires" CONTENT="never">
<META HTTP-EQUIV="Pragma" content="no-cache">
<META NAME="ROBOTS" CONTENT="INDEX,FOLLOW">
<META NAME="revisit-after" CONTENT="7 days">
<META NAME="DC.format" content="text/html">
<META NAME="DC.Date" content="2003-11-04">
<META NAME="DC.contributor" CONTENT="Your Name">
<META NAME="DC.subject" CONTENT="This, keywords, here, are, indexing, allin, PHPDIG">
<META NAME="DC.description" CONTENT="This, keywords, here, are, indexing, in, PHPDIG">
<META NAME="DC.title" CONTENT="This, keywords, here, are, indexing, allin, PHPDIG">
<META NAME="DC.language" CONTENT="de">
<META NAME="DC.type" CONTENT="Information">
<!-- Global Meta End -->
<title>Title of Homepage</title>
<link href="stylesheet.css" rel="stylesheet" media="screen">
</head>
Any hints to solve the "eregi_replace" - problem ? Perhaps does "phpdigExclude" work as workaround for this area ?
I think this part don't work with PHP > 4.3.2 (robot_functions.php)
//delete content of head, script, and style tags
$text = eregi_replace("<head[^<>]*>.*</head>"," ",$text);
$text = eregi_replace("<script[^>]*>.*</script>"," ",$text);
$text = eregi_replace("<style[^>]*>.*</style>"," ",$text);
// clean tags
$text = eregi_replace("(</?[a-z0-9 ]+>)",'\1 ',$text);
Try a Site with this META:
<head><!-- ID 566789 - generated by CMS -->
<!-- Global Meta Beginn, Template: meta.tpl -->
<META http-equiv="content-type" content="text/html;charset=ISO-8859-1">
<META HTTP-EQUIV="Content-Language" CONTENT="de">
<META NAME="description" CONTENT="Informationen, and your description here is indexing">
<META NAME="keywords" CONTENT="This, keywords, here, are, indexing, allin, PHPDIG ">
<META NAME="publisher" CONTENT="This is also indexing">
<META NAME="copyright" CONTENT="This is also indexing">
<META NAME="creation_Date" CONTENT="11/04/2003">
<META NAME="expires" CONTENT="never">
<META HTTP-EQUIV="Pragma" content="no-cache">
<META NAME="ROBOTS" CONTENT="INDEX,FOLLOW">
<META NAME="revisit-after" CONTENT="7 days">
<META NAME="DC.format" content="text/html">
<META NAME="DC.Date" content="2003-11-04">
<META NAME="DC.contributor" CONTENT="Your Name">
<META NAME="DC.subject" CONTENT="This, keywords, here, are, indexing, allin, PHPDIG">
<META NAME="DC.description" CONTENT="This, keywords, here, are, indexing, in, PHPDIG">
<META NAME="DC.title" CONTENT="This, keywords, here, are, indexing, allin, PHPDIG">
<META NAME="DC.language" CONTENT="de">
<META NAME="DC.type" CONTENT="Information">
<!-- Global Meta End -->
<title>Title of Homepage</title>
<link href="stylesheet.css" rel="stylesheet" media="screen">
</head>
Any hints to solve the "eregi_replace" - problem ? Perhaps does "phpdigExclude" work as workaround for this area ?