I have a webpage which has a topbar spanning across the top and then the content in a frame below. The content is on a different subdomain (i.e. the page is at sub.foo.com but the content frame at site.foo.com)
When people search for the site on Google the link is often to the content subdomain (i.e. site.foo.com) rather than sub.foo.com which has the topbar, which they should be taken to instead.
What are the best practices for handling this? We are impleentig a redirect that will take the user to sub.foo.com if they go directly to site.foo.com, but I wanted to know if there were any SEO techniques we should be employing such as robots.txt or canonical site tags to prevent the content subdomain being indexed and linked to from search engines. Needless to say, we do not want to loose ranking die to any techniques we employ. I've not really much experience in this area.