Advertisement

Google: Invalid URLs Should Return 404s, not 5XX Server Errors

  • 448
    SHARES
  • 3.9K
    READS
Google: Invalid URLs Should Return 404s, not 5XX Server Errors

Google’s John Mueller recently provided some guidance with regards to invalid URLs on a website.

An invalid URL should return a 404 error so it’s clear to Google that the URL does not belong to a particular site. A 5XX error doesn’t send that kind of signal.

Mueller offered this information on Twitter in response to an SEO tweeting about Google Search Console discovering 5XX errors.

“Got an alert from Google Search Console today that one of our pages is 5XX – after investigation it’s a mention of our link in the footnotes of a scientific pdf article: as there is a semicolon right after the url, the url is not valid. Had no idea @googlewmc was this thorough!”

Mueller didn’t acknowledge Search Console’s impressive ability to discover this error. Rather, he was more interested in addressing the issue of server errors versus 404 errors.

Site owners should generally avoid having URLs that trigger 5XX server errors, regardless of where they originate from, Mueller says.

“If URLs are invalid for your site, you should return 404 so that it’s clear that they’re not valid for your site.”

In an answer to a follow-up question, Mueller revealed that Google will never stop crawling a 404 page as long as signals for the URL exist on the web somewhere.

“As long as we have signals for that URL (even if it’s just a random link somewhere), we’ll keep trying it from time to time.”

More Resources

CategoryNewsSEO
ADVERTISEMENT

Subscribe to SEJ

Get our daily newsletter from SEJ's Founder Loren Baker about the latest news in the industry!

Ebook

Matt Southern

Lead News Writer at Search Engine Journal

Matt Southern has been the lead news writer at Search Engine Journal since 2013. With a degree in communications, Matt ... [Read full bio]

ADVERTISEMENT
Advertisement
Read the Next Article
Read the Next