NeovaNền tảng SEO chuyên sâu

URL 4xx nằm trong sitemap XML

Trong Neova Chạy trên lần crawl đã xong: không cần thiết lập gì.

Quy tắc được rà soát lần cuối ngày 17 tháng 10 năm 2026 · Hướng dẫn cập nhật ngày 17 tháng 10 năm 2026

Sitemap liệt kê một URL trả về lỗi client, nên crawler gặp lỗi thay vì nội dung.

Bạn có thể làm gì

Khôi phục URL, hoặc xóa nó khỏi sitemap.

Neova tìm ra bằng cách nào

Neova đọc các sitemap XML của bạn và so sánh với những gì lần crawl tìm thấy.

Vì sao Neova đánh dấu

  • Crawler đi theo sitemap gặp lỗi client thay vì trang.
  • Google không index URL trả về 4xx, và mục 404 hoặc 410 lãng phí lượt crawl.
  • Sitemap liệt kê URL chết trở thành tín hiệu kém tin cậy hơn cho phần còn lại của site.

Nguồn

Ticket nó tạo ra

Phần này tạm thời còn bằng tiếng Anh.

XM-006 · 4xx URL Is Listed in an XML Sitemap

How to Check the Fix: 1. Run the check again in Neova
2. Spot-check sample URLs across affected templates
3. Record the re-check date and period label next to the baseline

Neova writes this ticket for every affected page group and sends it to Jira, Linear, Asana and the rest, after you approve it.

Hướng dẫn đầy đủ

Phần này tạm thời còn bằng tiếng Anh.

TL;DR

A 4XX URL in your XML Sitemap is a dead link you are actively asking search engines to crawl, so remove broken URLs from the sitemap and either redirect or restore the ones that still hold value.

What a 4XX in a Sitemap Actually Means

An XML Sitemap is a curated list of the pages you want search engines to find and index. Every URL in it is, in effect, a recommendation. When one of those URLs returns a 4XX client-error response, you are recommending a page that no longer serves content. Google's guidance is direct: a sitemap should list the canonical URLs you prefer to show in search results, and a common mistake is including URLs of pages that do not exist. Screaming Frog echoes this in its defaults, where only HTML pages returning 200 are written to a generated sitemap, so 3XX, 4XX, and 5XX responses are excluded by design.

A 4XX URL in your sitemap is therefore a contradiction. You tell the crawler "this page matters, index it" while the server answers "this page is not available." That mixed signal is the entire problem.

404 vs 410 vs 403/401

Not all 4XX codes carry the same meaning, and the distinction changes how search engines react.

404 Not Found

A 404 means "not present right now." It does not inherently mean the page was deleted on purpose. Because of that ambiguity, Googlebot tends to keep the URL in its scheduler and returns to recrawl it several times over days or weeks to confirm the status before dropping it.

410 Gone

A 410 is more explicit: the content is gone intentionally and permanently. Search engines generally honour this faster, marking the URL as retired and removing it from the index sooner than they would a 404. If a page is genuinely never coming back, 410 is the cleaner signal.

403 Forbidden and 401 Unauthorized

A 403 tells the crawler it is not allowed to access the page, and a 401 demands authentication the crawler cannot provide. Neither page can be indexed, and Sitebulb warns that when search engines find this kind of "dirt" in a sitemap they may stop trusting the file for crawling and indexing signals. None of these codes belong in a sitemap.

Why It Matters

There are two costs. The first is trust: when a sitemap is littered with errors, search engines may discount the file as a reliable source of crawl and indexing signals, which dilutes the value of every good URL listed alongside the broken ones. The second is noise. Every dead URL you submit sends the crawler to confirm the page is gone and fills your Search Console reports with errors that bury real problems. Google says 4XX URLs (except 429) do not waste crawl budget, so the cost is clean signals and clean reports, not crawl capacity.

Common Causes

The usual culprit is a stale sitemap. A page is deleted, unpublished, or its slug is changed, but the sitemap is cached or generated on a schedule, so it keeps listing the old URL until the next rebuild. CMS and plugin bugs are the next most frequent source: a generator that pulls from the wrong query, includes draft or trashed content, or fails to drop items when their status changes. Other causes include listings removed from a database without a sitemap update, hand-edited sitemaps that were never maintained, and incorrect URL construction (a trailing-slash or protocol mismatch that resolves to a 4XX).

How to Diagnose

Crawl the sitemap directly rather than the live site. In Screaming Frog, point the crawler at the sitemap in list mode, then open the Response Codes tab and apply the Client Error (4xx) filter to strip out the 200 and 3XX clutter, leaving only the failing URLs. The dedicated sitemap reports flag a "Non-200 URLs In Sitemap" condition for exactly this. To build a fix list with sources, use Bulk Export.

Screaming Frog
  Mode > List > Download Sitemap
  enter: https://example.com/sitemap.xml
  Response Codes tab > Filter: Client Error (4xx)
  Bulk Export > Response Codes > Client Error (4xx) Inlinks

Quick curl check on a single URL:
  curl -o /dev/null -s -w "%{http_code}\n" https://example.com/old-page/

Google Search Console's Sitemaps report and URL Inspection tool will also surface URLs that were submitted but could not be fetched, which is a useful second confirmation.

How to Fix It

Triage each broken URL into one of three buckets, then act.

Has a valid replacement? If the content moved, 301-redirect the old URL to its new home, then make sure the new URL (not the old one) is what appears in the sitemap.

Still valuable but accidentally broken? Restore the page so it returns a 200. Pages that earn traffic or links should be rendering 200, not erroring, so fix the underlying cause rather than just hiding the symptom.

Genuinely gone for good? Let it return 404 or, better, 410, and remove it from the sitemap entirely. The key step in every case is regenerating or cleaning the sitemap so the dead URL is no longer listed. For most CMS-driven sites that means forcing a fresh sitemap build (clear the cache or trigger a rebuild); for a hand-maintained file it means deleting the offending lines. Re-crawl to confirm zero 4XX URLs remain, then resubmit the clean sitemap in Search Console.

Best Practice

Treat the sitemap as a strict allow-list: only canonical, indexable, self-referencing URLs that return 200. No redirects, no noindex pages, no error responses. Automate sitemap generation so it always reflects current content state, crawl the sitemap periodically, and watch the Search Console Sitemaps report for fetch failures. A clean sitemap keeps search engines trusting your signals and spending crawl on the pages that actually matter.

FAQ

Q: Will a few 404s in my sitemap get my site penalised?

A: There is no direct manual penalty for it. The harm is indirect: search engines may trust your sitemap less as a crawl and indexing signal, and your reports fill up with dead URLs (Google says 4XX URLs do not waste crawl budget). It is a hygiene issue worth fixing, not a punishment trigger.

Q: Should I use 404 or 410 for a page I deleted on purpose?

A: Use 410 when you are certain the page is permanently gone, since search engines tend to drop 410 URLs from the index faster. Use 404 when the absence might be temporary. Either way, remove the URL from the sitemap.

Q: I fixed the pages, so why does the error still show?

A: Your sitemap is likely cached or generated on a schedule. Force a fresh rebuild, confirm the dead URLs are gone with a crawl, then resubmit the sitemap in Search Console so the report reflects the corrected file.

Need a full technical audit?

Neova runs deep crawls that catch issues like this across your whole site.

Tìm lỗi này trên trang của bạn

Neova chạy mục kiểm tra này và mọi mục khác trong mỗi lần crawl, rồi viết cách sửa thành ticket cho nhóm của bạn.

  • Ứng dụng máy tính cho Mac, Windows và Linux
  • Tất cả 696 mục kiểm tra, mỗi mục kèm nguồn
  • Search Console và Analytics 4, kết nối chỉ đọc
  • Ticket sang Jira, Linear và Asana

Tải Neova Gói Desktop Free, hoặc dùng thử Solo miễn phí 14 ngày, không cần thẻ.

Tất cả mục kiểm tra Sitemap · Hướng dẫn · Thư viện mục kiểm tra

Do Neova Labs biên soạn · Quay lại Thư viện mục kiểm tra