Re: Search engines and cookies

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Apr 7, 2008 at 9:29 AM, Emil Edeholt <emil@xxxxxxxxxxxx> wrote:
> Hi,
>
>  Do you guys how search engines like cookies? One site I'm working on now
> requires the user to select which region he/she is from on the start page.
> That value is stored in a cookie. So without cookies you can't get past the
> start page. Does this leave the search engines at the start page? Right now
> google only index the start pages on my site and I'm trying to figure out
> why.
>
>  If I can't use cookies, how would you force users to select a region but
> letting the search engine spiders in on the site somehow?

    One way to do it would be to allow Google (and/or other search
engines) to access the site by bypassing the region-selection
entirely.

<?php
if(preg_match('/Google/Uis',$_SERVER['HTTP_USER_AGENT'])) {
    // Allow Google to pass through.
}
?>

-- 
</Daniel P. Brown>
Ask me about:
Dedicated servers starting @ $59.99/mo., VPS starting @ $19.99/mo.,
and shared hosting starting @ $2.50/mo.
Unmanaged, managed, and fully-managed!

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux