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

noindex-in-sitemap

Skill này làm gì

Skill này so sánh các URL trong sitemap XML với chỉ thị noindex trên các trang đó, rồi giải quyết mọi xung đột. Skill dành cho chủ website muốn tín hiệu lập chỉ mục nhất quán.

Khi nào nên dùng

  • ✓Khi bạn yêu cầu agent kiểm tra xem sitemap có liệt kê các trang không nên được lập chỉ mục không.
  • ✓Khi kết quả tìm kiếm thiếu những trang bạn mong đợi và bạn nghi ngờ có tín hiệu mâu thuẫn.
  • ✓Khi bạn kiểm tra vấn đề lập chỉ mục và cần xác nhận sitemap khớp với các trang bạn muốn lập chỉ mục.

Liên kết skill

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

“Bạn có thể kiểm tra sitemap của tôi và cho biết trang nào trong đó cũng được đặt noindex không?”

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

Cách hoạt động

Agent đọc sitemap, truy cập từng URL được liệt kê và kiểm tra thẻ meta noindex hoặc header X-Robots-Tag. Sau đó agent báo các xung đột và khuyên hoặc gỡ noindex, hoặc gỡ URL 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.

Noindex in Sitemap

Listing noindexed pages in your sitemap sends contradictory signals to Googlebot—it wastes crawl budget and may confuse Google into ignoring the noindex directive or spending crawl time on pages you don't want indexed.

Quick Reference

  • Never include noindexed pages in your XML sitemap
  • The sitemap and noindex directive send contradictory signals to crawlers
  • Sitemaps should only list canonical-url, indexable, 200-status URLs
  • Remove noindexed URLs from sitemap or remove the noindex directive—pick one

Check

Fetch the XML sitemap(s) and check each listed URL. For each URL, retrieve the page and check for <meta name='robots' content='noindex'> in the <head> or an X-Robots-Tag: noindex HTTP header. Report any URLs present in the sitemap that also carry a noindex directive.

Fix

For each URL that has a noindex directive AND appears in the sitemap: decide whether the page should be indexed. If yes — remove the noindex directive. If no — remove the URL from the sitemap. Never leave both in place.

Explain

The XML sitemap is a recommendation to search engines: 'please crawl and index these pages'. A noindex directive is an instruction: 'do not index this page'. Including noindexed pages in the sitemap creates a contradiction—Google will resolve it by following noindex, but the URL still gets crawled, wasting crawl budget.

Code Review

Fetch each URL in the XML sitemap. For each URL, check the HTTP response for X-Robots-Tag: noindex header, and check the rendered <head> for <meta name='robots' content='noindex'>. Report any URL that appears in the sitemap AND carries a noindex directive. Also check for sitemap entries returning non-200 status codes.


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

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

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

Vì sao có cả hai là vấn đề?

Sitemap yêu cầu công cụ tìm kiếm lập chỉ mục trang, còn thẻ noindex yêu cầu không làm vậy, điều này lãng phí nỗ lực thu thập và gửi tín hiệu lẫn lộn.

Nên giữ cái nào?

Skill nói hãy quyết định trang có nên được lập chỉ mục không, rồi chỉ giữ thiết lập khớp với quyết định đó, không bao giờ giữ cả hai.

Agent có kiểm tra header cũng như thẻ trang không?

Có. Skill kiểm tra cả thẻ meta robots lẫn header HTTP X-Robots-Tag.

Chi tiết

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

Use when auditing an XML sitemap or diagnosing indexing issues. Applies to any site where noindex meta tags or X-Robots-Tag headers may be applied to URLs also listed in the sitemap.

repo: thedaviddias/Front-End-Checklist

Độ phổ biến

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