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
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 implementing 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 lose ranking due to any techniques we employ.