Technical SEO is making sure nothing stands between a search engine and your pages. It sounds daunting and mostly is not: for a typical small site it is a short list of things to get right once, and then to avoid breaking. Google’s own minimum is three conditions. The crawler is not blocked, the page answers successfully, and the page has content that can be indexed.
Controlling what gets crawled and indexed
Two tools are constantly confused, and mixing them up is the most common technical mistake.
| Tool | What it does | What it does not do |
|---|---|---|
robots.txt | Tells crawlers which addresses they may fetch. Used mainly to keep them out of areas that waste their time. | It does not keep a page out of search. A blocked page can still be listed if other sites link to it; it just appears without a description. |
noindex | Tells search engines not to list a page. Set with a <meta name="robots" content="noindex"> tag or an X-Robots-Tag header. | It only works if the page can be crawled. Block the page in robots.txt and the crawler never sees the instruction. |
| A login | Keeps a page private from everyone, crawlers included. | Nothing else is needed for truly private content. |
Sitemaps
A sitemap is a file, usually /sitemap.xml, listing the pages you want found. It helps discovery, especially on new sites, large sites and sites with few links between pages. It is a suggestion, not a command: listing a page does not guarantee indexing. List only the pages you want in search, at their canonical addresses. One file can hold up to 50,000 addresses or 50 MB; larger sites split it. Tell search engines where it is in robots.txt and in their webmaster tools.
One page, one address
The same page is often reachable at several addresses: with and without www, with tracking codes on the end, with a trailing slash, through a category path. Search engines choose one as the canonical and credit signals to it. Help them choose the one you want:
- Redirect the variants to the one true address (the strongest signal).
- Add
<link rel="canonical" href="…">to each page, pointing at its preferred address. This is a strong hint, not an order. - Link to the preferred address consistently, and list only that one in the sitemap.
Status codes and redirects
Every request gets a three-digit answer. A handful matter:
| Code | Meaning | Use it when |
|---|---|---|
200 | Success | The page exists. A “not found” message served with a 200 is a soft 404 and confuses crawlers. |
301 / 308 | Moved permanently | A page has a new address for good. Search engines transfer the old page’s standing to the new one. |
302 / 307 | Moved temporarily | A short-term detour. The old address stays the one in the index. |
404 / 410 | Not found / gone | The page no longer exists and has no replacement. Perfectly normal; it is dropped from the index over time. |
5xx | Server error | Never on purpose. Repeated errors slow crawling and can drop pages from the index. |
When you rename a page or rebuild a site, redirect every old address to its closest new equivalent, one hop, and keep those redirects in place. Google advises at least a year. A redesign that drops old addresses without redirects is the classic way to lose years of rankings in a weekend.
Mobile, security and speed
Google indexes the mobile version of your pages (it calls this mobile-first indexing), so anything missing on a phone is missing from search. Serve every page over HTTPS. And make pages fast and stable, which Google measures with three figures called the Core Web Vitals:
- LCPLargest Contentful Paint
2.5 s or less
Loading: how long until the main content is visible. - INPInteraction to Next Paint
200 ms or less
Responsiveness: how quickly the page reacts to a tap or click. - CLSCumulative Layout Shift
0.1 or less
Stability: how much things move around as the page loads.
These are measured on real visits by real Chrome users, and the usual test is that at least three quarters of visits meet the mark (the 75th percentile). You can see your figures free in PageSpeed Insights and in Search Console. Keep them in proportion: Google recommends good scores, but a fast page that answers the search badly will not outrank a slower one that answers it well. The usual culprits are oversized images, too many third-party scripts, and elements that load without reserved space.
JavaScript
Google can run JavaScript and index what it produces, but it is an extra step that can be delayed or can fail, and many other crawlers, including several used by AI assistants, do not run scripts at all. The reliable approach is for the content and links to be present in the HTML the server sends. If your site is built with a JavaScript framework, use its server-rendering or static-generation mode. Links should be real <a href> elements, not buttons with click handlers.
Structure
Organize the site the way you would organize a small store: a clear front door, a few obvious departments, everything important within a few steps. Group related pages, link between them, and show the visitor where they are with breadcrumbs. Watch for machinery that manufactures endless addresses, such as filters, sort orders, calendars and internal search results; these waste crawling and create duplicates.
Things only larger or special sites need
- Crawl budget
- How much of a site a crawler will fetch. Google says this matters for sites with around a million pages, or ten thousand that change daily. Smaller sites can ignore it.
hreflang- Markup that connects versions of a page in different languages or for different countries, so each searcher gets the right one. Only needed if you publish such versions.
- IndexNow
- A way to tell participating search engines the moment a page changes. Bing and several others use it; Google does not, and relies on crawling and sitemaps.
- Site moves
- Changing domain is a project of its own: redirects for every address, both sites verified in webmaster tools, and patience while the index catches up.
The short version
- Three conditions: not blocked, answers 200, has indexable content.
robots.txtcontrols crawling;noindexcontrols listing. They are not interchangeable.- One address per page: redirect the variants and set a canonical.
- Redirect every old address when anything moves, and keep the redirects.
- Mobile version, HTTPS, and passing Core Web Vitals. Content in the HTML, not only in scripts.
Sources
This chapter was written from, and checked on against, these pages:
- Google: Search technical requirements
- Google: Introduction to robots.txt
- Google: Block Search indexing with noindex
- Google: Build and submit a sitemap
- Google: Canonicalization
- Google: Redirects and Google Search
- Google: Site moves with URL changes
- Google: Understanding Core Web Vitals
- web.dev (Google): Web Vitals and the 75th percentile
- Google: JavaScript SEO basics
- Google: Managing crawl budget for large sites
- IndexNow
