: Directing iframe search hits to parent site We have created a campaign site that will be embedded into the customer's Sharepoint site as an iframe. We don't want people to access our site directly,
We have created a campaign site that will be embedded into the customer's Sharepoint site as an iframe. We don't want people to access our site directly, and would like to make the search results point to the customer's parent site containing the iframe instead. Is this possible?
More posts by @Correia994
1 Comments
Sorted by latest first Latest Oldest Best
If I understand the question correctly (as tagged with google-search), you want search results from Google to point to your customer's site that contains an iFrame, instead of your site from which the iFrame originates.
As stated here:
Google tries to associate framed content with the page containing the
frames, but we don't guarantee that we will.
As also indicated there, you can use the noframes tag (not supported in HTML5) to provide alternative content that search engines can use to index the iFrame with.
IFrames also support Global Attributes, including the title attribute which can be used to add keywords for the iFrame, just like anchor text in a link. You can also add them to a longer description in the longdesc attribute (also not supported in HTML5). Using these attributes may also help get the iFrame indexed on the customer's page.
You should also add a canonical URL in the page on your site that points to the customer's page so that search engines might consider that as the page to index, and you should add a disallow directive in your robots.txt file to tell robots not to index the URL of the page on your site.
Combing the above with additional content on the customer's page that's relevant to the terms that search engine users might search for, will improve your chances that your customer's page will be indexed and found in searches.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.