2

I'm a beginner with websites and I want to know if the sitemap.xml file of my website should or shouldn't index the 404.html page, which is a custom 404 page.

This question is quite similar to Should 404 pages feature in your sitemap.xml but that question felt very vague to me and it didn't clearly state what I'm supposed to do if I have a custom 404 page. Though there was a short comment about it, yet I need to verify that.

1 Answer 1

4

404 Pages exist to let the users/browsers know that the page does not exist. There is no reason or need to index a 404 page. As long as your 404 page passes the error code, it is fine.

1
  • Thanks for your answer. It seems reasonable to me now to not to index the 404 page. Commented Feb 7, 2019 at 7:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.