Is there a meta tag to get search engines to account for frames? Google and yahoo are indexing my sites frame and not the homepage =|
Printable View
Is there a meta tag to get search engines to account for frames? Google and yahoo are indexing my sites frame and not the homepage =|
Google says:
Source: http://www.google.com/webmasters/2.htmlQuote:
Originally Posted by Google
You could place a javascript in each frame source so that it would reload in the frameset if that page is loaded outside of the framset by checking the top.location
here's if u dont no the javascript script...
1) In a text document, on the first line, type if (top.location != "frameset.url", where frameset.url is the frameset that the page in question should always be displayed in.
2) If desired type & top.location != "frameset2.url" where frameset2.url is another frameset in which the page is allowed to be displayed.
*Repeat steo 2 for each possible frameset.*
3) Type ) to complete the condition.
4) Then type {top.location.href= "frameset.url"}, where frameset.url is the web page that should be displayed instead of the requested page, and must be one of the ones noted in steps 1-2, and (hopefully) contains the requested page.
5) Save the script as a text only with the name name.js.
6) In the head section of your HTML document, type <script type="text/javascript" language="javascript" src="name.js"></script> to call the scipt written in name.js.
*This should work to solve ur problem.*
almost forgot dont use enter anywhere in the script because this breaks the script