Hi,
I cannot seem to identify the Zoom 6 spider in my PHP pages. I am trying to install it on a WordPress site where the default article title is Blog Name >> Article title (concatenated). This has been picked up by search engines over the past 3 years so I am loathe to change it now, even if I should have done it from day 1 in hindsight.
I want my site search results to contain just the Article Title without the Blog Name and ">>" prefix, so I want to feed the Zoom spider just the title.
This code does not seem to work for me. I am using the User Agent string specified in the .pdf manual. The HTTP_USER_AGENT value does work on my server, in tests from my browser as it returns "Mozilla . . . ."
Any ideas?
This is the default code in the standard WordPress header.php script
I am not a PHP coder, so maybe I have introduced a bug or used incorrect syntax?
I cannot seem to identify the Zoom 6 spider in my PHP pages. I am trying to install it on a WordPress site where the default article title is Blog Name >> Article title (concatenated). This has been picked up by search engines over the past 3 years so I am loathe to change it now, even if I should have done it from day 1 in hindsight.
I want my site search results to contain just the Article Title without the Blog Name and ">>" prefix, so I want to feed the Zoom spider just the title.
This code does not seem to work for me. I am using the User Agent string specified in the .pdf manual. The HTTP_USER_AGENT value does work on my server, in tests from my browser as it returns "Mozilla . . . ."
Any ideas?
PHP Code:
<title>
<?php
$theAgent = $_SERVER["HTTP_USER_AGENT"];
$ZoomUserAgent = "ZoomSpider - wrensoft.com[ZSEBOT]";
if ($theAgent==$ZoomUserAgent)
{
wp_title();
}
else
{
bloginfo('name');
wp_title();
}
?>
</title>
PHP Code:
<title>
<?php bloginfo('name'); ?>
<?php wp_title(); ?>
</title>
Comment