【问题标题】:Should everything be written in sitemap.xml for a dynamic news site?对于动态新闻站点,所有内容都应该写在 sitemap.xml 中吗?
【发布时间】:2014-12-10 14:51:14
【问题描述】:

我有一个新闻网站,数据库中有近 200 000 条新闻。我将它们拆分为每个文件包含 1000 个链接的子 xml 文件。

我的站点地图xml 看起来像:

<sitemap>
<loc>http://example.com/sitemap_categories.xml</loc>
<lastmod>2014-11-10T16:01:08+02:00</lastmod>
</sitemap>

<sitemap>
<loc>http://example.com/sitemap_news_200.xml</loc>
<lastmod>2014-12-10T16:01:08+02:00</lastmod>
</sitemap>

<sitemap>
<loc>http://example.com/sitemap_news_199.xml</loc>
<lastmod>2014-12-10T16:01:08+02:00</lastmod>
</sitemap>

<sitemap>
<loc>http://example.com/sitemap_news_198.xml</loc>
<lastmod>2014-12-10T16:01:08+02:00</lastmod>
</sitemap>

...

直到 sitemap_news_0。

这是一个正确的方法吗?我应该像上面写的那样将所有内容都放在 sitemap.xml 中还是只索引今天或几个月的新闻?

【问题讨论】:

    标签: xml web seo sitemap


    【解决方案1】:

    最简单的解决方案是在此处实现适当的 XML 站点地图创建器:

    https://www.xml-sitemaps.com/standalone-google-sitemap-generator.html

    【讨论】:

      【解决方案2】:

      这取决于您的目标和内容类型。通常,新闻内容在特定时间范围内很重要,而常青内容可能会流行很长时间。但是,提供流行过时新闻的存档可能会增加您网页的访问量。这样,这完全取决于您的目标。

      总而言之,站点地图应为所有页面提供索引,但您有意不希望被 SE 索引的页面除外。

      【讨论】:

        猜你喜欢
        • 2012-08-12
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2016-10-10
        • 1970-01-01
        • 1970-01-01
        • 2013-05-24
        相关资源
        最近更新 更多