当前位置:CNZZ数据专家 > 帮助中心 > 其它常见问题 > 神马站长平台Sitemap格式说明
神马站长平台Sitemap格式说明

1、什么是Sitemap

Sitemap(站点地图)是一种文件,站长可通过该文件列出网站上的网页,将网站内容的组织结构告知搜索引擎。神马等搜索引擎网页爬取工具会读取此文件,以便更加智能地抓取网站内容。

2、神马支持的Sitemap格式

神马搜索支持的Sitemap文件包括标准xml文件和索引型xml文件,索引型xml文件限定最多不超过三层。

3、标准xml文件格式示例:

<?xml version="1.0" encoding="utf-8"?>
  <!-- XML文件需以utf-8编码-->
  <urlset>
    <!--必填-->
    <url>
        <!--必填,定义某一个链接的入口,每一条数据必须要用<url>和</url>来标示 -->
        <loc>http://m.domain.com/abc.xhtml</loc>
        <!--必填,URL长度限制在256字节内-->
        <lastmod>2014-05-01</lastmod>
        <!--更新时间标签,非必填,用来表示最后更新时间-->
        <changefreq>daily</changefreq>
        <!--更新频率标签,非必填,用来告知引擎页面的更新频率 -->
        <priority>0.5</priority>
        <!--优先级标签,优先级值0.0-1.0,用来告知引擎该条url的优先级-->
     </url>
     <url>
        <loc>http://m.domain.com/123.xhtml</loc>
        <lastmod>2014-05-01</lastmod>
        <changefreq>daily</changefreq>
        <priority>0.8</priority>
    </url>
  </urlset>

4、索引xml文件格式示例

(1)顶层Sitemap格式
<sitemapindex>
<sitemap>
<loc>
http://www.abc.com/sitemap_v2/detail_new/index/index_1.xml
</loc>
<lastmod>2013-12-18 12:59:12</lastmod>
</sitemap>
<!-- n组xml item -->
</sitemapindex>
(2)中间层Sitemap格式(非必要)
<sitemapindex>
<sitemap>
<loc>
http://www.abc.com/sitemap_v2/detail_new/1/1.xml
</loc>
<lastmod>2013-12-18 12:59:12</lastmod>
</sitemap>
<!-- n组xml item -->
</sitemapindex>
(3)内容层Sitemap格式
参照标准xml文件格式示例