: SEO techniques to handle frames 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
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 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.
More posts by @Hamaas447
2 Comments
Sorted by latest first Latest Oldest Best
As John said, frames are pretty bad for SEO. You are already doing a redirect which is OK from a user's point of view, but the search engines probably won't see that. My advice:
Put a link on the inside page to the wrapper page, with target="_top" in case users click it. That should at least point a little "link juice" to the proper page.
Add a canonical tag to the inside page too. This now works cross-domain so that might stem the problem.
Find all links to the inside page and try to get them changed if possible.
Add more links to the wrapper page from other places to try and get it ranking better.
It's a very difficult task, because the wrapper page doesn't contain any real content, only the inner page does. You are fighting a losing battle really, and ought to find a way around the frame option.
By using frames you're already hindering your SEO efforts as frames are not SEO friendly (and it's not great for usability or accessibility which is no coincidence).
Having said that your best bet is to check to see if the page is being loaded outside of a frame and then do a 301 redirect to the framed page. That will tell the search engines that the framed page is the correct page and to disregard the unframed version.
A better solution is to ditch the frames and use server side includes of some sort to handle the automatic inclusion of your topbar.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.