Forum Moderators: open
I am new here and have a question about search engines which browse through a frame site.
The site has been listed on search engines but the spiders don't read the body content, as the search engine can't read the frame and I get a message on the search engines browser saying "Get a new browser"
My question is, is there anyone I can fix this problem so the search engine can pick up the meta tags and body text properly, without any problems?
Kind regards,
[edited by: agerhart at 2:31 pm (utc) on Jan. 22, 2004]
[edit reason] removed URL per TOS [/edit]
In your html for the frameset, look for these tags...
<noframes></noframes>
The content you want to display to users who do not have frames enabled would go between the <noframes> and </noframes> tags.
<noframes>
<body>
<p>This page uses frames, but your browser doesn't support them.</p>
</body>
</noframes>
After </frameset> you carry on with:
<noframes>{put a whole page of inner content in here if you want, but mostly text is important</noframes>
You can use the opera browser to see what your page would look like by switching off frames support in Opera.
BUT - all this does is make your frameset readable. What you (also) should do is to
1) make it easy for spiders to read all the inner pages, for example by having a site map that links to all the INNER pages. This means that it is possible to load an inner page without the frameset it is designed to be in, but at least the spider gets to the page. You fix the second problem by
2) You should use javascript to check whether a page loads inside its proper frameset and if it doesn't, use some jiggery pokery to get it to do so. I am guessing that since you don't know about the noframes tag then Javascript is going to be a toughie for you, so instead try putting this immediately after your "Head" tag on all the internal frames pages (but NOT on the home page/outer frame page!):
<script language="javascript" type="text/javascript">
if (top.location == self.location)
top.location.href="/"</script>
This should at least put users into the home page of your site if they try to load an inner page spiersed by a search engine.
I haven't tested this code by the way, but took it off a page where we do something a bit more extravagent.
Hope it helps.
Dixon.