sitemap - 如何在高度动态的网站上生成站点地图?

标签 sitemap

如果一个不断生成新页面的高度动态网站使用sitemap ?如果是这样,像 stackoverflow.com 这样的网站如何重新生成站点地图?如果每次有人添加问题时都不断地重新生成站点地图,那么似乎会耗尽宝贵的服务器资源。它是否按设定的时间间隔(例如每四个小时)生成新的站点地图?我很好奇大型动态网站如何实现这一点。

最佳答案

在 Stackoverflow(以及所有 Stack Exchange 站点)上,会创建一个 sitemap.xml 文件,其中包含系统上发布的每个问题的链接。当发布新问题时,他们只需将另一个条目附加到站点地图文件的末尾。添加到文件末尾并不需要大量资源,但文件很大。

这是 Google 等搜索引擎有效抓取网站的唯一方法。

杰夫·阿特伍德在博客文章中谈到了这一点:The Importance of Sitemaps

这是来自 Google's webmaster help page on sitemaps :

Sitemaps are particularly helpful if:

  • Your site has dynamic content.
  • Your site has pages that aren't easily discovered by Googlebot during the crawl process - for example, pages featuring rich AJAX or Flash.
  • Your site is new and has few links to it. (Googlebot crawls the web by following links from one page to another, so if your site isn't well linked, it may be hard for us to discover it.)
  • Your site has a large archive of content pages that are not well linked to each other, or are not linked at all.

关于sitemap - 如何在高度动态的网站上生成站点地图?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1099393/

相关文章:

asp.net-mvc-3 - MVC Sitemap Provider - 维护面包屑路径中的 URL 参数

javascript - 如何从vue路由器中仅提取路由来生成站点地图

xml - Zend Framework 站点地图验证

sitemap - 每次提交新文章后都要ping google sitemap?

xml - 此 sitemap.xml 文件有何无效之处?

php - 迁移到 "Sitemap Protocol 0.9"

c# - 使用论坛生成站点地图

xml - 为 Weblication 自动生成 XML 站点地图

asp.net - 有没有办法在 WinForm/Console/VSTest 应用程序中使用 XmlSiteMapProvider?

seo - 在谷歌搜索结果中,链接如何显示在结果下方