Chuyển đến nội dung
Skillpedia
SEO75k · #3022

sitemap-domain

Skill này làm gì

Skill này kiểm tra các địa chỉ trong sitemap xem có lệch tên miền, giao thức hay dạng www không, rồi sửa lại. Nó dành cho website đã đổi tên miền, chuyển từ HTTP sang HTTPS, hoặc thay đổi cấu hình www.

Khi nào nên dùng

  • ✓Khi bạn yêu cầu agent kiểm tra xem địa chỉ trong sitemap có khớp với tên miền hiện tại không.
  • ✓Khi bạn vừa chuyển từ HTTP sang HTTPS hoặc đổi tên miền.
  • ✓Khi Search Console báo độ bao phủ thấp đối với sitemap bạn đã gửi.

Liên kết skill

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/sitemap-domain/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/sitemap-domain/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Chúng tôi đã chuyển sang HTTPS và tên miền mới, nhưng Search Console báo độ bao phủ thấp. Bạn có thể kiểm tra các URL trong sitemap đã dùng đúng tên miền chưa?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent đọc mọi mục location trong sitemap và so sánh giao thức, tên máy chủ với địa chỉ của chính sitemap. Nó đánh dấu những chỗ lệch, như tên miền cũ, địa chỉ HTTP hoặc dạng www sai, rồi cập nhật về phiên bản chính tắc.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Keep sitemap URLs on the correct domain

Google ignores sitemap entries from domains it cannot verify as yours — cross-domain URLs are simply skipped, meaning those pages lose the crawl-discovery benefit of the sitemap.

Quick Reference

  • Every <loc> URL must use the same domain and protocol (https://www.example.com) as the sitemap file itself
  • Cross-domain URLs in a sitemap are ignored by Google
  • Mixing http:// and https:// URLs in one sitemap creates conflicting signals
  • Mixing www and non-www variants indicates a canonicalization issue to fix first

Check

Parse all <loc> values in the sitemap and extract the protocol and hostname. Flag any URL whose protocol or hostname differs from the sitemap's own URL. Common mismatches: http vs https, www vs non-www, old domain vs new domain.

Fix

Update all <loc> URLs to use the canonical-url protocol and hostname. If the site is on https://www.example.com, every sitemap URL must start with https://www.example.com/. Regenerate and resubmit the sitemap.

Explain

Explain why Google restricts sitemap URLs to the same domain, how cross-domain URLs are silently dropped, and how domain mismatches in a sitemap reveal underlying canonicalization problems.

Code Review

Review metadata generation, rendered HTML, structured data, and response headers related to Keep sitemap URLs on the correct domain. Flag exact routes or templates where search-facing output violates the rule, and describe how to verify the final page output.


For full implementation details, code examples, and framework-specific guidance, see references/rule.md.

Rule page: https://frontendchecklist.io/rules/seo/sitemap-domain

Câu hỏi thường gặp

Tại sao Google bỏ qua một số mục trong sitemap?

Skill cho biết Google bỏ qua các URL thuộc tên miền mà họ không xác minh được là của bạn, nên các trang đó không được hưởng lợi từ sitemap.

URL vừa có www vừa không có www cho thấy điều gì?

Skill cho biết đó là dấu hiệu của vấn đề chuẩn hóa địa chỉ và nên sửa trước.

Sau khi sửa tôi nên làm gì?

Skill khuyến nghị tạo lại sitemap rồi gửi lại cho Search Console.

Chi tiết

Mô tả gốc của tác giả

Use when applies to sites that have recently migrated from HTTP to HTTPS, changed domain name, or have www/non-www redirect configurations. Use when sitemap submission reports low coverage.

repo: thedaviddias/Front-End-Checklist

Độ phổ biến

Sao GitHub
75k
Vị trí xếp hạng
#3022
Giấy phép
MIT
Cập nhật
31/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự