A sitemap lists the pages you want found, and robots.txt tells crawlers which areas to leave alone. Both are simple, and mistakes in them can quietly hide your site.
The sitemap
An XML sitemap is a list of your important pages and when they changed. It helps search engines discover pages, especially new ones or ones with few links. Submit it in the search engine tools.
robots.txt
This file asks crawlers to avoid certain areas, such as private admin pages. It is a request, not security, so never rely on it to protect anything confidential.
- Point to your sitemap in the file
- Do not block pages you want to rank
- Check it after every site change
The costly mistake
A single line left over from development can block the whole site. After launch, open your robots.txt and confirm nothing important is disallowed.

