

Sitemap是一种站点地图文件,站长可通过该文件列出网站上的网页,将网站内容的组织结构告知搜索引擎。搜索引擎网页抓取工具会读取此文件,以便更加智能地抓取网站内容
检查网站是否被收录查询:将网站地址直接复制在google搜索中,有结果说明被收录
网站收录量查询:site:网站地址
下面是sitemap.xml文件主要格式
<?xml version="1.0" encoding="UTF-8"?>
<urlset
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xhtml="http://www.w3.org/1999/xhtml"
xsi:schemaLocation="
http://www.sitemaps.org/schemas/sitemap/0.9
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
<!-- HOME -->
<url>
<loc>页面url</loc>
<lastmod>2021-05-12</lastmod>
<changefreq>daily</changefreq>
<priority>1</priority>
</url>
<!-- ENQUIRY -->
<url>
<loc>页面url</loc>
<lastmod>2021-05-12</lastmod>
<changefreq>daily</changefreq>
<priority>0.9</priority>
</url>
</urlset>
urlset:版本及配置信息
url:网站信息
- loc:网站完整网址
- lastmod:最后更新时间
- changefreq:此页面的更新频率
- always:页面一直在变动,更新频率非常高
- hourly:每小时
- daily:每天
- weekly:每天
- monthly:每月
- yearly:每年
- never:永不变动
- priority:表示本页面在网站的重要程度,越重要值越大,可填(0.0~1.0)