My client is using iframes on its website. I have seen search engines are not able to crawl the content of the page, instead the iframe page has been indexed and its content has been crawled by Google. I want google to see the iframe page's content as the content of the page where iframe has been called. What I have done is this: I have putted all the content of the iframes page into the page where iframe has been called within the <iframe> and </iframe> tag and noindexed the iframe page in meta robots tag. As I know, the page can also be disallowed in the robots.txt file. Is this okay? I want to avoid the duplicate penalty.
best suggestion is that if possible then don't use iframe because it is affect for crawler. so i am highly recommending don't use iframe.
I highly do not recommend using iframe as well ! so you get the point 3 people now saying don't use it.
When your site has an iframe code especially on your site's link page, other sites may not exchange link with you since content inside an iframe will not recognized by search engines.
Thanks to all, but my client is not willing to remove iframes. So, I just wanted to knew whether the method Iam using as I described above is fine?
I already very well know that iframes is completely obsolete? Most of the answers above are just saying that do not use it. But I have to obey the client. So Can somebody confirm whether the above method Iam using is good or not? All suggestions are welcome !
As I said above, the iframe page has been indexed and its content has been crawled by Google. I want google to see the iframe page's content as the content of the page where iframe has been called. I tested the following method: I have a page where iframe has been called(iframe is on this page) suppose - a.html I have another page where content(the text) is there for the iframe suppose - b.html This is the code for the a.html page: <IFRAME src="b.html" width="400" height="500" scrolling="auto" frameborder="1"> Hello this is a test. </IFRAME> End of the code for a.html ------------------------- This is the code for b.html: <body> Hello this is a test. </body> So, b.html page has the only text "Hello this is a test." And what I have done is written the same text "Hello this is a test." on the page where iframe has been called, its on a.html like this <ifame> Hello this is a test. </IFRAME> So, by doing this iframe text is shown on the page a.html (through b.html) but the text written on this page (the same text) is not shown to the users but search engines are able to see this.(as I see in the lynx viewer) And I have also given noindexed in the meta robots tag for b.html to avoid duplicate issues. Now whats your opinion on this ? Iam doing this for seo purposes. You can read my first post also. Well IMO, this is good !
Avoid iframes at any cost. Search engines don't favor it. You are killing the potential of the site with iframes.
The pages you are IFraming, is it content from other sites??? or are you Iframing your own URL pages??? I have done a top iframe of other peoples content URL pages before (As a content link post just showing my logo and an ad at top). Does not hurt google. Google indexs the pages. If you iframe your own site that could be counted as duplicate content, or could cause problem when google tries to spider those pages.