Re: Search engines and cookies

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

 



Search engines won't come past that page. How about setting a default region when a user enters a different page then your main page?

Daniel Brown wrote:
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.
}
?>



--
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