Return blog list
Practical Guide
2026/6/8

Manual Creation, Upload, and Submission of Sitemap.xml to Search Engines: Complete Workflow

Manual Creation, Upload, and Submission of Sitemap.xml to Search Engines: Complete Workflow

# Sitemap.xml 完整制作与提交流程

一、什么是 Sitemap?

A Sitemap is an XML file that lists the URLs of all important pages on your site, helping search engines and AI crawlers discover and index your content more efficiently.

II. Manually Create Sitemap

Basic Infrastructure

<?xml version="1.0" encoding="UTF-8"?>

<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">

<url>

<loc>https://www.example.com/</loc>

<lastmod>2026-06-08</lastmod>

<changefreq>daily</changefreq>

<priority>1.0</priority>

</url>

<url>

<loc>https://www.example.com/about</loc>

<lastmod>2026-06-01</lastmod>

<changefreq>monthly</changefreq>

<priority>0.8</priority>

</url>

</urlset>

```

Field Description

**loc**: Full page URL (required)
**lastmod**: Last Modified Date, format YYYY-MM-DD (recommended)
**changefreq**:更新频率(可选值:always, hourly, daily, weekly, monthly, yearly, never)
**priority**:优先级,0.0-1.0(可选,默认 0.5)

三、自动生成工具

1. XML-Sitemaps.com

URL: https://www.xml-sitemaps.com/

Free support for up to 500 URLs
在线生成并下载

2. Screaming Frog SEO Spider

Desktop app: Free version supports 500 URLs
可爬取网站自动生成 Sitemap

3. CMS 插件

WordPress:Yoast SEO、All in One SEO
Shopify: Built-in Sitemap Feature
Wix:自动生成 Sitemap

IV. Upload and Deploy

Step 1: Save file

将生成的 XML 内容保存为 `sitemap.xml`

第 2 步:上传到根目录

通过 FTP 或主机控制面板上传到网站根目录

Step 3: Verify Access

在浏览器中访问:https://www.example.com/sitemap.xml

五、提交给搜索引擎

百度站长平台

1. Sign in to https://ziyuan.baidu.com/

2. Select "Link Submission" → "Sitemap"

3. 输入 Sitemap 地址并提交

Google Search Console

1. Sign in to https://search.google.com/search-console

2. Select "Sitemap"

3. Enter sitemap.xml and submit

Bing Webmaster Tools

1. Sign in to https://www.bing.com/webmasters

2. Select "Sitemaps"

3. Submit Sitemap URL

六、最佳实践

1. **Keep Updated**: Update Sitemap after adding or removing pages

2. **控制大小**:单个 Sitemap 不超过 50MB 或 5 万个 URL

3. **使用 Sitemap 索引**:大型网站可拆分为多个 Sitemap

4. ** contains only canonical URLs**: excludes duplicate pages and parameter URLs

5. **HTTPS Preferred**: Use HTTPS URLs instead of HTTP

七、常见问题

**Q: How long does it take for a sitemap to take effect? **

Typically crawled within 1-7 days, depending on the site's authority.

**Q: Do I need to submit to multiple search engines? **

Yes, each search engine requires a separate submission.

**Q:动态网站需要手动更新 Sitemap 吗?**

We recommend using CMS plugins or scripts to generate automatically, avoiding manual maintenance.