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

sitemap-4xx

Skill này làm gì

Skill này kiểm tra mọi URL được liệt kê trong sitemap và tìm những URL trả về mã lỗi như 404 hoặc 410. Nó dành cho chủ website đã xóa hoặc di chuyển trang theo thời gian.

Khi nào nên dùng

  • ✓Khi bạn yêu cầu agent kiểm tra sitemap để tìm các trang trả về lỗi.
  • ✓Khi Search Console báo lỗi trong sitemap sau một thay đổi trên website.
  • ✓Khi bạn đã gỡ hoặc di chuyển nội dung và cần sitemap khớp với những gì đang hoạt động.

Liên kết skill

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/sitemap-4xx/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-4xx/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

“Sitemap của tôi liệt kê các trang hiện trả về lỗi. Bạn có thể kiểm tra từng URL và dọn dẹp giúp tôi không?”

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

Cách hoạt động

Agent tải từng URL trong sitemap và ghi lại mã trạng thái. Với trang đã chuyển đi, nó gợi ý chuyển hướng 301 và địa chỉ mới. Với trang đã mất hẳn, nó gợi ý trả về mã 410 và xóa khỏi sitemap.

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.

4XX Pages in Sitemap

Including 4XX URLs in a sitemap signals poor site maintenance to Google, wastes crawl budget on non-existent pages, and generates errors in Search Console that can mask real indexing issues.

Quick Reference

  • Sitemaps should only contain URLs that return HTTP 200 and are indexable
  • 4XX URLs in a sitemap waste crawl budget and cause Search Console errors
  • Remove 404 pages from the sitemap or set up proper 301 redirects before adding them
  • Monitor the sitemap regularly — deleted content must be removed from sitemaps promptly

Check

Fetch all URLs listed in the sitemap and record their HTTP status codes. Flag any URL returning 4XX (404 Not Found, 410 Gone, 403 Forbidden). Cross-reference against Google Search Console → Coverage for corroborating data.

Fix

For each 4XX URL: if the content moved, set up a 301 redirect to the new URL and add the new URL to the sitemap. If the content is permanently gone, return 410 Gone and remove the URL from the sitemap. Regenerate and resubmit the sitemap.

Explain

Explain why sitemaps must only contain live, indexable URLs, how 4XX URLs in sitemaps affect crawl budget allocation, and the difference between 404 and 410 status codes for deindexing.

Code Review

Review metadata generation, rendered HTML, structured data, and response headers related to 4XX Pages in Sitemap. 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-4xx

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

Tại sao các trang lỗi trong sitemap lại quan trọng?

Skill cho biết chúng làm lãng phí công sức thu thập dữ liệu và tạo ra lỗi trong Search Console, có thể che khuất các vấn đề lập chỉ mục thực sự.

Khác biệt giữa 404 và 410 là gì?

Skill cho biết 410 Gone báo hiệu nội dung đã bị gỡ có chủ đích, giúp công cụ tìm kiếm loại bỏ nó nhanh hơn.

Có nên kiểm tra sitemap thường xuyên không?

Có. Skill khuyến nghị theo dõi định kỳ, vì nội dung đã xóa cần được gỡ khỏi sitemap kịp thời.

Chi tiết

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

Use when applies to any site with a dynamically generated or manually maintained XML sitemap. Use when investigating crawl errors or after a site migration that removed pages.

repo: thedaviddias/Front-End-Checklist

Độ phổ biến

Sao GitHub
75k
Vị trí xếp hạng
#3020
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ự