As specified by W3C the <meta>tag can only be located in the <head> part of your HTML so you can't use these tags for your tabs. However, you could use Sitemaps
could be a good solution for you. According to the site,
Sitemap 0.90 is offered under the terms of the Attribution-ShareAlike Creative Commons License and has wide adoption, including support from Google, Yahoo!, and Microsoft.
You can generate the sitemap of your site with this site in XML, add the tabs manually, and then submit it to the different search engines directly or add it in your robots.txt file as follows:
Sitemap: http://example.com/sitemap_location.xml
You could also use microdata, as specified in this W3C Specification. According to the spec:
When a string value is a URLs, it is expressed using the a element and
its href attribute, the img element and its src attribute, or other
elements that link to or embed external resources.
So even if your URL contains a fragment (the # part), the different search engines should point to the correct tab. For example, Google adds a "jump to" link. See this old blog post.
Request
The crawler agrees to request from the server ugly URLs of the format:
domain[:port]/path?_escaped_fragment_=hashfragment
domain[:port]/path?queryparams&_escaped_fragment_=hashfragment
domain[:port]/path?_escaped_fragment_=
domain[:port]/path?queryparams&_escaped_fragment_=
Search result
The search engine agrees to display in the search results the corresponding pretty URLs:
domain[:port]/path#!hashfragment
domain[:port]/path?queryparams#!hashfragment
domain[:port]/path
domain[:port]/path?queryparams
Request
The crawler agrees to request from the server ugly URLs of the format:
domain[:port]/path?_escaped_fragment_=hashfragment
domain[:port]/path?queryparams&_escaped_fragment_=hashfragment
domain[:port]/path?_escaped_fragment_=
domain[:port]/path?queryparams&_escaped_fragment_=
Search result
The search engine agrees to display in the search results the corresponding pretty URLs:
domain[:port]/path#!hashfragment
domain[:port]/path?queryparams#!hashfragment
domain[:port]/path
domain[:port]/path?queryparams
发布评论
评论(2)
正如 W3C 所指定的
< ;meta>
标签只能位于 HTML 的部分,因此您不能在选项卡中使用这些标签。但是,您可以使用站点地图
对你来说可能是一个很好的解决方案。据该网站称,
您可以使用 XML 格式的 此站点 生成站点的站点地图,手动添加选项卡,然后提交直接将其添加到不同的搜索引擎,或将其添加到您的
robots.txt
文件中,如下所示:您还可以使用微数据,如本 W3C 规范。根据规范:
因此,即使您的 URL 包含片段(
#
部分),不同的搜索引擎也应该指向正确的选项卡。例如,Google 添加了“跳转到”链接。请参阅这篇旧博文。As specified by W3C the
<meta>
tag can only be located in the<head>
part of your HTML so you can't use these tags for your tabs. However, you could use Sitemapscould be a good solution for you. According to the site,
You can generate the sitemap of your site with this site in XML, add the tabs manually, and then submit it to the different search engines directly or add it in your
robots.txt
file as follows:You could also use microdata, as specified in this W3C Specification. According to the spec:
So even if your URL contains a fragment (the
#
part), the different search engines should point to the correct tab. For example, Google adds a "jump to" link. See this old blog post.编辑:https://developers.google.com/webmasters/ajax-crawling/docs /规格
这说明了一切。
总结文章。对于所有 Ajax 回调,服务器端页面也应该实现
EDIT : https://developers.google.com/webmasters/ajax-crawling/docs/specification
This explains it all.
Summarizing the article. for all Ajax callbacks server side pages should also be implemented