Indexability: whether your page is allowed into the index at all
SEOWhich technical settings decide whether Google takes a page in, how noindex, canonicals and redirects cancel each other out, and how to check it yourself in a few minutes.
12 min read
By Timo Wessels Published
A page can only appear in search results if it is in the index. The index is the search engine’s database. Whether the page is allowed in is decided not by the content but by a handful of technical details: status code, redirects, the robots meta tag, the X-Robots-Tag in the HTTP header, the canonical tag and the robots.txt.
Each of these is set in a different place, often by a different plugin or a different person. That is why they can contradict each other. The result is the familiar finding: the page is online, it looks good, it works, and for Google it does not exist.
The most important points first:
- Whether a page may enter the index is decided by technical details and not by content.
- These details are set in different places and can contradict each other.
- The consequence: the page is online and looks good, but for Google it does not exist.
The signals that decide
| Signal | Where it stands | What it says |
|---|---|---|
| Status code | Server response | 200 = here is the page, 301/308 = moved permanently, 404 = does not exist |
| Redirect | Server, rarely in the HTML | where the address points and whether that is final |
| Robots meta tag | <head> of the page |
noindex = not in the search results |
X-Robots-Tag |
HTTP header | the same as the meta tag, also for PDFs and images |
| Canonical | <head> or HTTP header |
which of several addresses is the authoritative one |
robots.txt |
Root of the domain | what may be fetched at all |
Each signal looks unremarkable on its own. It gets interesting when two contradict each other, for example an index in the meta tag and a noindex in the header. For this case Google has a clear rule: with conflicting robots rules the more restrictive one applies. So the page is out.
robots.txt prevents fetching, not indexing
This is the difference that produces the most stubborn mistakes. Google writes explicitly that the robots.txt is not a means of keeping a page out of Google. It controls which addresses a crawler may fetch, mainly so as not to overload the server. A crawler is a search robot.
A blocked page can still appear in search results if other pages link to it. Then the address is there, but without a description. In Search Console it can show up as “Indexed, though blocked by robots.txt”.
Worse still: because Google does not fetch the blocked page, Google does not see the noindex on it either. Google names this as a condition: for noindex to work, the page must not be blocked by the robots.txt. Whoever wants to get rid of a page and therefore blocks it achieves the opposite.
The rule that follows:
- If a page is not to be in the index: set
noindexand allow fetching. - If a page is not to be fetched at all because it creates server load, for example internal search results with arbitrary parameters:
robots.txt. - Never both at once for the same page.
With CSS, JavaScript and image files Google is cautious: blocking is only harmless if the page does not look significantly different without these files. What Google needs to understand the page must stay fetchable.
noindex: the most expensive single mistake
The most common finding in this field is also the most annoying: an important page is accidentally set to noindex. This is how it happens:
- After a relaunch. On the test environment “Discourage search engines from indexing this site” was enabled, and the setting came along in the move. Since WordPress 5.3 this tick sets a meta tag
noindex,nofollowon every page. Google names exactly this point in its guide to site moves: removenoindexandrobots.txtblocks that were only needed for the move or for development. - Through a plugin that sets
noindexacross the board for a whole content type. That is my experience. - Through a header set by a host or a server rule that nobody sees in the HTML. That is my experience.
Where noindex belongs: internal search result pages, login and account areas, cart and checkout, thank-you pages after submitting a form, thin archive and tag pages with no value of their own. That is my assessment.
noindex alone is enough. The default is that there are no restrictions on indexing and display. An additional follow changes nothing.
Here is a principle that is often missing: not every page belongs in the index. In the help on the indexing report Google writes that you should not expect all URLs of the website to be indexed, only the canonical pages. The goal is for the canonical version of every important page to be in the index, not as many pages as possible.
Canonical: which address counts
The canonical tag tells Google which address is the authoritative one when the same or very similar content can be reached under several addresses. Duplicate addresses arise faster than you think:
- through sort and filter functions and campaign identifiers in the address
- through
http://andhttps:// - through
www.and without - through the slash at the end
- through test environments that are accidentally publicly reachable
Important to know: the canonical is a hint, not an instruction. Google writes: you can state your preference, but Google may choose a different page as canonical for various reasons. Several factors play a part: whether the page is served over HTTP or HTTPS, redirects, inclusion in a sitemap and the canonical annotations. Google calls redirects and rel="canonical" strong signals and the sitemap a weak one. The more signals point in the same direction, the more likely Google is to follow you.
Two classes of mistakes
The target is wrong. The canonical points to the wrong page. Classic with multi-page content: page 2 points to page 1. Google explicitly advises against it, because these are not duplicates. Every page in a sequence gets its own canonical. Otherwise the content from page 2 onwards disappears from the index.
The form is broken. The canonical is written relative, stands in the body instead of the <head> or is present twice. If several canonicals are on a page, all are ignored, according to Google’s blog. A formally broken canonical can therefore point to the right page and still have no effect. A common trigger: theme and SEO plugin both set one. That is my experience.
The rules
- Exactly one canonical per page.
- In the
<head>. - Written absolute, with protocol and domain.
- Pointing to itself. Google recommends a self-referencing canonical on the canonical page itself.
- The target must be reachable and indexable: no error page, no
noindex. noindexis no substitute for a canonical. Google advises against using it to steer the choice of a canonical page, because it removes the page from search entirely. The canonical is the preferred solution. Google also advises against giving different addresses as canonical for the same page by different means.
Redirects and chains
301 and 308 are permanent. For Google a strong signal that the target should become the authoritative address. That is the standard case for every moved page.
302, 303 and 307 are temporary. Google follows them but does not treat them as a signal that the target is the authoritative address. They show the source page in the search results. They are right only for what is really temporary.
Chains arise almost by themselves: A redirects to B, B to C. Every time an address is changed without tidying up the old rule, the chain grows. Googlebot follows up to 10 hops. Google still recommends redirecting straight to the final destination, and where that is not possible, keeping the chain short, ideally no more than 3, fewer than 5 hops. Every hop costs visitors load time.
The solution is always the same: pull the chain together into one hop. A points straight to C. Loops (A to B, B back to A) make the page unreachable for everyone and show up in Search Console as redirect errors.
And the point that decides at a relaunch: internal links should point directly to the final, canonical address, not to one that redirects. Google writes that linking consistently to the canonical address helps it understand your intention.
Redirects at a relaunch
- Every old address whose content lives on needs a target, namely the one where the same content now stands.
- Do not redirect across the board to the home page. Google warns that many old addresses redirected to a single unsuitable target can be treated as a “soft 404”, that is, like an error page. If you have merged the content of several pages, you may redirect all of them to the one new page.
- Leave redirects in place as long as possible, according to Google generally at least one year.
Address variants: slash, www and https
/services and /services/ are two different addresses for Google. Google writes this on its blog: it treats both forms separately and equally, whether they look like a file or a directory. That the slash directly after the host name is meaningless follows from how addresses are written: an address without a path always has the path /.
The same applies to www. and without, http:// and https://. For Google these are different addresses of the same page, that is, duplicates.
The solution: decide once for one variant, enforce it on the server by 301 and bring canonicals, sitemap and internal links into line. Google writes: if only one of the two versions is served and the other redirects to it, that is good, because it reduces duplicate content. Which variant you choose is secondary. What matters is that there is only one. The easiest is usually the one your system produces anyway. That is my assessment.
Sitemap and canonical must say the same
The sitemap is a weak but additional signal for the authoritative address. That is why only canonical, indexable addresses belong in it: no redirects, no error pages, nothing with noindex, nothing with a canonical to another page. An address with noindex in the sitemap is a direct contradiction. How to check the sitemap itself is in the article on robots.txt and sitemap.
How to check it yourself
The URL Inspection tool in Search Console. The most direct way. Enter the address at the top, and you see whether the URL is on Google. Below are details on whether crawling and indexing are allowed, and two canonical fields: the user-declared and the Google-selected canonical URL. If the two differ, Google did not follow your hint. After a correction, the live test shows the current state.
The page indexing report. It lists for the whole website the reasons why addresses are not indexed, such as “Excluded by ‘noindex’ tag”, “Alternate page with proper canonical tag”, “Duplicate without user-selected canonical”, “Page with redirect”, “Redirect error” or “Crawled – currently not indexed”.
The look at the source. Ctrl+U, then Ctrl+F. Search for name="robots" and for rel="canonical". Both may occur at most once, and the canonical belongs in the <head>.
The HTTP headers. This is the case nobody finds who only looks at the page: the meta tag says index, the X-Robots-Tag in the header says noindex, and the stricter instruction wins. Visible in the developer tools under Network: reload the page, click the first line, read the response headers.
Redirect chains. Also in the Network tab: if the first line says 301 or 302 and another redirect follows, you have a chain.
The variant test. Open your home page and a subpage: with www. and without, with http:// and https://, with a slash at the end and without. All must land on the same address, in one hop. It takes a minute. That is my practice.
For the full overview you need a crawling tool that goes through the whole website and outputs indexability, canonicals, redirects and status codes per address. With 300 pages nobody checks individually.
What you can do
- Check the home page and the five most important subpages with the URL Inspection tool. If anything there is not indexed, everything else takes second place.
- Tidy up
noindex. It belongs on a few clearly nameable pages and nowhere else. Check the headers as well. - Make sure there is exactly one canonical per page, absolute, in the
<head>, pointing to an indexable address. - Merge the address variants into one, by 301.
- Pull redirect chains together and correct internal links that run through a redirect.
- Check the
robots.txtfor whether anything is blocked there that Google needs to display the page, or a page that should really getnoindex. - After every relaunch, first of all: did the test environment setting come along? That is the most expensive mistake in this field and the easiest to avoid. That is my experience.
Sources
- Google Search Central, Introduction to robots.txt — no means against indexing, blocked pages without a description, resources: developers.google.com(external site: developers.google.com)
- Google Search Central, Block Search indexing with noindex — meta tag and
X-Robots-Tag, no block by robots.txt: developers.google.com(external site: developers.google.com) - Google Search Central, Robots meta tag and X-Robots-Tag specifications — default, stricter rule applies on a conflict: developers.google.com(external site: developers.google.com)
- Google Search Central, What is URL canonicalization — causes of duplicate addresses, canonical as a hint, factors: developers.google.com(external site: developers.google.com)
- Google Search Central, How to specify a canonical URL — signal strength, self-referencing canonical, no noindex, internal links: developers.google.com(external site: developers.google.com)
- Google Search Central Blog, 5 common mistakes with rel=canonical — several canonicals are ignored, target without noindex, page 2 not to page 1: developers.google.com(external site: developers.google.com)
- Google Search Central, Pagination and incremental page loading — every page with its own canonical: developers.google.com(external site: developers.google.com)
- Google Search Central, Redirects and Google Search — 301/308 permanent, 302/303/307 temporary: developers.google.com(external site: developers.google.com)
- Google Search Central, HTTP status codes, and network and DNS errors — up to 10 redirect hops: developers.google.com(external site: developers.google.com)
- Google Search Central, Site moves with URL changes — keep chains short, at least a year, no mass redirect to the home page, remove noindex after the move: developers.google.com(external site: developers.google.com)
- Google Search Central Blog, To slash or not to slash — slash at the end, both forms separate: developers.google.com(external site: developers.google.com)
- Search Console Help, Page indexing report — reasons, not every address needs to be indexed: support.google.com(external site: support.google.com)
- Search Console Help, URL Inspection tool — live test, declared and selected canonical URL: support.google.com(external site: support.google.com)
- WordPress Core, Changes to prevent search engines indexing sites — WordPress 5.3 sets
noindex,nofollowinstead ofDisallow: /: make.wordpress.org(external site: make.wordpress.org) - Own practice — typical causes of an accidental
noindex, the variant test, the order of steps.