Two small files sit quietly at the root of your website and shape how Google sees it.

The sitemap

An XML list of every page you want indexed, usually at /sitemap.xml or /sitemap_index.xml. It tells search engines what exists and when it last changed. It does not guarantee indexing, but it helps them find everything, especially pages not linked prominently.

WordPress generates one automatically, and SEO plugins produce a better one. Submit it in Google Search Console once and you are done.

robots.txt

A plain text file telling crawlers where not to go. Useful for keeping admin areas and internal search results out of the index.

The expensive mistake

A site built on a staging server usually blocks all crawlers so the unfinished version does not get indexed. Occasionally that block ships to the live site, and the whole website becomes invisible to Google. We have been called in for “our rankings vanished” and found exactly this.

In WordPress there is also a tick box under Settings, Reading, called “Discourage search engines”. Developers tick it during a build. If nobody unticks it at launch, same outcome.

How to check

  1. Visit yourdomain.co.za/robots.txt and read it. “Disallow: /” on its own is a full block.
  2. In WordPress, check Settings, Reading, and make sure that box is unticked.
  3. In Search Console, use the URL inspection tool on your homepage.

Worth checking right after any launch or redesign. It takes two minutes and the failure mode is total.