A WordPress sitemap can open beautifully in your browser and still send Google to the wrong website. The XML may be valid, the layout tidy and the green Success label entirely deserved. If the entries point to the old preview host, the file has succeeded at advertising precisely the wrong addresses.
Treat a sitemap submission as a short chain. Find the production file, open one of the pages it lists, then submit the location in the right Search Console property. Afterwards, verify that Google read the file and investigate indexing as a separate question.
Find the file your site really produces
Start with the public /robots.txt on the final production host. Look for a line beginning Sitemap:. A site can have several. Ask the person who manages the CMS or the build which one they maintain. WordPress installations may supply a core sitemap or a sitemap from an SEO plugin. A filename that worked on your previous site is a poor reason to submit it on this one.
Open the address in a private browser window. Look at the final URL, not just the tab title. A sitemap can be a sitemap index, a file listing other sitemap files, or a URL set, a file listing the individual pages. On sites with styled XML, the browser may display a neat table. Use View Source or the Network response to check the underlying content. An HTML marketing page with links to dozens of articles is a human sitemap, a different artefact.
If the index lists a pages map and a products map, open both. Record the public address of each and one real entry from each. Following that final link is the step that catches staging domains, broken routes, redirects and private stock pages. No Google account is needed to discover that https://staging.example.com.au/product/desk/ is an unsuitable destination for the public catalogue.
Check a sample against the intended index
Include complete, preferred URLs for public pages you want to appear in search. A login screen, a tracking variant of the home page, a discontinued product returning 404 and an address redirecting to a newer page generally have no place in the main production sitemap. Put the selected destination on the list. A URL that needs an account for its core content is unlikely to be a useful public search landing page simply because the XML mentions it.
Here's a hypothetical sample from a furniture shop just after launch.
| Entry found in the generated file | Public result | Change to make |
|---|---|---|
| Production dining-table category | 200, products visible, self-canonical | Keep |
| Preview-host desk listing | Still asks for staging access | Correct the generator’s base URL; keep preview private |
| Old sideboard slug | 301 to the current product | List the destination |
| Delivery calculator with session ID | Result depends on an individual basket | Exclude session-specific URLs from the generator |
| Recently added repairs service | Missing despite being linked in navigation | Include the service in the relevant content collection |
Test the correction on the next build as well as the current file. A one-off hand edit to generated XML can vanish the next time somebody publishes a chair. Retain a sheet naming the sitemap generator, its owner, which content types belong in each map, and who verifies new types after a release.
Google supports sitemap protocols including XML and simpler formats for certain uses. A single sitemap can contain up to 50,000 URLs and be up to 50 MB uncompressed. Split larger collections into multiple sitemaps and use an index. A business with a few hundred pages rarely needs to split for size. Separating products and help articles can still make reporting easier when different people maintain them. Keep URLs fully qualified, escape special XML characters such as &, and use accurate last-modified dates only when the system knows the page had a significant update. Google’s sitemap creation guidance
Submit the correct address
- Select the Search Console property covering the production host. For a URL-prefix property, match the scheme, hostname and path. Check you're in the right account if the property doesn't appear.
- Sign in with owner permissions for submission through the report. A user who can read other reports may have insufficient access for this action. A publicly listed sitemap in
robots.txtis another discovery method, including where the site administrator doesn't use the submission interface. - Open Indexing → Sitemaps. In Add a new sitemap, enter the URL or the portion needed to complete the prefix the interface shows. Read the resulting whole address before selecting Submit.
- Record the submitted URL, date, file type and what you checked. If you submitted an index, routine maintenance of its child references usually belongs in that index. There is no need to resubmit all the child files every morning.
- Return to the report and look at Status, Last read and Discovered pages. The time the form accepted your entry and the date Google last fetched it are different observations. Google’s Sitemaps report reference
Match the report status to the layer that failed
Couldn’t fetch. Test the exact submitted location as a public, signed-out visitor. Check that the host exists, the service responds, the URL is correct, and a CDN or security product isn’t returning an access challenge. Inspect the network response rather than assuming a styled error means the file is present. If the sitemap index opens but one child doesn't, fix that child’s route or the link to it. When another provider manages the edge, send the exact path, time, HTTP status and expected file. “Google thinks the sitemap is broken” gives the host little to work with.
Has errors. Google retrieved something but encountered a processing problem. Open the submission for the error details. Compare the cited line or type with the raw document. A missing closing tag, an unescaped ampersand, an invalid URL or a generated HTML error inside an expected XML file points to different repairs. Fix what produces the problem, regenerate, and test a second entry likely to contain the same character or condition. Google may still queue the entries it could parse.
Success. Google could load and process the sitemap. The discovered page count describes URLs parsed from the sitemap, with duplicates counted once; an index incorporates its child maps. It does not measure customers, search impressions or final inclusion in the index. An example of 300 discovered pages and 230 indexed URLs needs a look at which 70 differ and whether they matter. It is not evidence that 70 valuable pages have been lost.
Verify the pages, then leave the file to do its job
In Page indexing, narrow to the submitted sitemap where available. Sample one important new product, one established product and one intentionally retired page. Check whether their expected states differ. Inspect the exact new URL if it remains outside the index. Its reported reason tells you whether to examine discovery, fetching, an instruction or duplication. Read the Page indexing report by business purpose.
Suppose the repaired shop's sitemap now lists the production desk page and Google last read it on Thursday. The product itself was last crawled on Monday, before the correction. You can close the generator fix now and retain a separate follow-up for product indexing. Submitting the XML again won't turn Thursday’s file read into a Thursday crawl of every desk.
Google periodically revisits successfully fetched sitemaps. After a serious fetch failure or a substantial replacement, fix the file and resubmit if appropriate. Routine content updates belong in the maintained file. Removing an old submission from the report removes that record from view; it doesn't erase the listed pages from Search. If the team’s actual goal is to retire a public URL, decide what response or access policy that URL should now have. Inspect the affected page directly.
A useful release check takes only a few lines. Record the sitemap index submitted, one working child map, a newly added page that belongs there and a retired page that no longer appears. A colleague can run that same check after the next launch without guessing what a successful green tick was meant to prove.