Re: Frames, Sessions & Search Engines

From: Date: Fri, 27 Jul 2001 14:38:57 +0000
Subject: Re: Frames, Sessions & Search Engines
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-59955@lists.php.net to get a copy of this message
Search Engines, usually, do not see individual frames. Not even Google, the (IMHO) best and largest one, do not. For example, if one page link to page.php and this page uses frames, and the search engine robot crawls to page.php, it will not index the individual frames. You can, however, especify a <NOFRAMES> tag, or similar, I might be wrong on the wording, to generate some text, link or image for agents that can not see frames. On it, you might put some kind of link to a non-frame page. But on your specific question, might be useful to ereg() the $HTTP_REFERER, and if it does not find a browser, you can header(); to some place. I say ereg() the browsers because they exist in less numbers than search engines... It might be a little difficult to find them all, but I guess it is worth, if you go for this direction. Might exist 20 or 30 browsers anyway... (browscap.ini is helpful to find out). If you do not go for this solution, just remember most (almost all) search engines will not index the individual frames on your document. -- Julio Nobrega. 2B||!BB - That's the question. "Jeroen Geusebroek" <j.geusebroek@infraxs.com> wrote in message news:9E13613D9F43154DB225F1E7D56AD6B20358A3@infradc01.infraxs-nl.com... Hi there, I have a question about how Search Engines handle sessions and frames. Since my site uses frames, and i think search engines link to pages individualy and not the frameset, i wanted to use sessions to indicate if a user comes from a search engine (then it doesn't have a valid session) and if so just redirect the user to the main page. But i'm afraid that search engines will get redirected to the main page everytime it try's to index a page. What do you all think, and might there be another solution? Thanks, Jeroen Geusebroek P.S. Please CC me in your reply, i'm not a member of the list.

« previous php.general (#59955) next »