When indexing on a trade website acts up, the instinct is to rewrite content and stuff more keywords. Wrong direction. Two files sitting further down the stack, robots.txt and sitemap.xml, break far more often than content does, and when they break, even a perfectly written page stays invisible to the crawler. For Google SEO optimization troubleshooting, put these two files at the top of the list. Six faults below, ordered by how often they show up.
The sitewide disallow line nobody deleted
During a build or a redesign, a line reading Disallow: / often lands in robots.txt to keep test pages out of search. Launch day comes, the line stays, and the whole site shuts its door on crawlers. The site looks perfectly fine to a human visitor; indexing just quietly drops to zero. Traffic collapsing right after a redesign? Check that line first.

CSS and JS blocked along with everything else
Older guides suggest blocking static asset directories. Crawlers now render pages, and with stylesheets and scripts blocked, what they see is a broken layout, which drags down mobile friendliness and content interpretation. Static asset directories, as a rule, stay open.
Using Disallow as a noindex substitute
Disallow stops crawling; it does not stop indexing. A noindex tag works only if the crawler can enter the page and read it. Shut the door and the tag goes unread, so the URL can still sit in results with an empty snippet. To keep a page out of the index, use noindex on the page itself, not robots.txt.
Dead addresses inside the sitemap
A sitemap is a handover list of addresses. Stuffed with 404s, redirects or duplicates, it loses trust, and that distrust slows crawling of the healthy URLs too. Open ten random entries in a browser, then compare the total count against the real volume of content on the site; five minutes covers it. EyouCMS and similar platforms ship a sitemap rebuild function, so remember to rebuild after content changes. Multilingual sites keep one list per language, and the three-step hreflang setup keeps Chinese addresses from leaking into the English list.
A broken Sitemap line in robots.txt
robots.txt can end with a Sitemap: declaration pointing crawlers straight at the list. Common mistakes: a relative path instead of a full https absolute address, http written on an https site, or a path that resolves to nothing. A wrong declaration is the same as none.
The two minute self check
Open yourdomain/robots.txt and yourdomain/sitemap.xml in a browser and confirm both return status 200. Read the robots.txt line by line and flag any Disallow whose scope runs too wide. Spot check a few sitemap entries. After fixing, run the crawl test tool in the search console so guessing turns into confirmation. If the tool still reports blocks, go back into the files and keep looking. Slower than expected indexing overall usually has more layers to it; the five step indexing check adds server response and content level items.
robots.txt decides which doors a crawler may enter, sitemap.xml decides which rooms it knows about. Sort these two files and the groundwork is done. For the longer climb, the 90 day checklist lays out the schedule.
Related Q&A
Do Disallow in robots.txt and noindex on a page conflict?
Not a conflict, but they hold different jobs. Disallow blocks crawling, noindex blocks indexing, and each mechanism works on its own. Using both on the same page backfires, since a crawler kept outside never reads the noindex. Pick one.
How long after submitting a sitemap does indexing change?
Each engine moves at its own pace, days to weeks, per the official notes. In the meantime, watch the sitemap status in the search console; if it reports errors, fix the file first and resubmit once rather than resubmitting repeatedly.
Should these files be rechecked after a redesign or a platform switch?
Yes. Four moments call for a two minute look: redesign, domain change, platform switch and adding a CDN. Sites built from static builds should also confirm the file is not overwritten by the build output.