Skip to main content

How to Audit a Website with 500,000 URLs

· 9 min read
Indexation audit for large websites

Half a million URLs is not a bigger version of a small audit. It is a different job, with a different sequence, and most of the effort is spent before anyone inspects a single page. The temptation is to open Search Console, start testing URLs and hope to get through. At 2,000 inspections a day that approach takes 250 days and tells you nothing useful until near the end.

The approach that works is five stages: inventory, crawl, cluster, inspect, decide. Each one feeds the next, and each one costs less than the one after it, provided you do not skip ahead. This is the order we would use on a 500,000-URL site, with the honest cost and duration of each stage, and what to do first if you are already drowning. The whole sequence runs comfortably inside one day's Search Console allowance.

Stage one: build the inventory​

Everything downstream depends on knowing what URLs exist. On a large site, the instinct is to open a spreadsheet. Do not. A hand-built inventory is out of date within a day, misses anything generated at request time, and quietly omits the URL families that are causing most of the problem.

Build it from two sources instead.

Sitemaps. XML sitemaps and sitemap indexes tell you what the site claims exists. They are the easy half and they are often the smaller half.

Internal links. Crawl the public site and harvest every internal link you find. This catches what the sitemaps never mention: orphaned parameter URLs, paginated leftovers, filtered views linked from templates, and the long tail of old paths that nobody cleaned up.

Together these give you a real inventory. On large sites the internal-link half routinely adds more URLs than the sitemap half does, and it is usually where the waste hides.

SourceCoverageCostTypical share of the inventory
Sitemap filesWhat the site declaresMinutes to fetch and parseOften 20 to 40%
Internal linksWhat a crawler can actually reachA crawl runOften the majority
A spreadsheetWhat someone rememberedHours to build, wrong by FridayUnreliable

Cost: minutes for the sitemaps, one crawl run for the links. Duration: under an hour for sitemaps, hours for the crawl.

Stage two: crawl, inside a defined budget​

This is the stage where people misunderstand the word "crawl budget" most often, so it is worth being precise about what it is and is not.

A crawl budget is the ceiling on how many pages your crawler will fetch in a single run. It is a discovery budget: it governs how much of the site you look at in order to find URLs. It is not the inspection budget and has nothing to do with the 2,000 Search Console inspections a day, which is a separate, smaller and much more valuable resource.

PruneSEO's default is 5,000 fetches per run, at a crawl rate of one request per second, to a maximum depth of 12. Those are sensible defaults for a reason:

  • One request per second is polite. It will not alarm a hosting provider's rate limits or slow down a site whose team is also trying to work.
  • A depth ceiling of 12 covers every realistic site architecture and stops the crawler wandering into generated pagination.
  • A 5,000-fetch ceiling keeps a run short enough to finish in an evening, so the inventory refreshes often instead of rarely.

If 5,000 fetches does not reach the whole site, that is fine and it is the correct design. You are not trying to fetch every URL, you are trying to reach enough of the site to discover the URL families. Depth-first coverage of the templates and section landings does that in a few thousand requests.

Cost: one crawl from your crawl allowance. Duration: roughly 90 minutes at one request per second for a full 5,000-fetch run.

Stage three: cluster, which is where the scale collapses​

This is the stage that makes large sites tractable, and the numbers are the reason to believe it.

Measured on three real large sites, clustering collapsed 162,000 URLs into 2 to 5 clusters. The reduction is startling, and it is not a trick. A site with 500,000 URLs usually has a handful of distinct shapes:

  • /product/*, 12,000 URLs
  • /search?q=*, 86,000 URLs
  • /blog/2021/*, 40,000 URLs
  • /category/* with pagination, 3,000 URLs

Each cluster is grouped on shape keys that are cheap and reliable to detect: trailing slash, tracking parameter, index file, file extension, and www prefix. Two URLs that differ only by a tracking parameter are the same pattern as far as an audit is concerned, because they will be crawled and judged the same way.

Once you have clusters, the size of the site stops being the interesting number. A 500,000-URL site and a 50,000-URL site with the same five templates are the same audit with different stakes.

Before clusteringAfter clustering
500,000 URLs to reason about2 to 5 patterns to act on
Every URL needs its own verdictEvery pattern needs one verdict
250 days at 2,000 inspections a dayA few hundred inspections

Cost: seconds of computation. Duration: effectively instant, and worth rerunning after every crawl.

Stage four: sample and inspect per pattern​

Now you spend the valuable resource, and you spend it properly.

Sampling is done per pattern, not per site. A pattern of 86,000 URLs gets a sample sized to give 95% confidence and plus or minus ten percentage points, which is 97 URLs at most, more if the pattern is expensive to reach. A pattern of 250 URLs or fewer is audited in full, because at that size a complete count is cheaper and more honest than a sample.

The result is one verdict per pattern, each carrying its own denominator and its own interval. A search-parameter pattern comes back as "Not indexed, at least 88%". A product pattern comes back as "Measured, not indexed, but negligible". A date-archive pattern comes back as "Rejected quality". Each of those is a decision waiting to be made, and each arrived with evidence attached.

PatternInventorySampledVerdict
/search?q=*86,551150Not indexed, at least 88%
/product/*12,00497Indexed, not a problem
/tag/*4,12020Not indexed, sample at minimum
/author/*860860Measured in full

Cost: a few hundred of your 2,000 daily inspections. Duration: under an hour.

Stage five: decide, then produce files​

An audit that ends in a spreadsheet has not been finished. The last stage turns each verdict into a specific, reviewable change.

The triage buckets are the sorting frame. Ghost pages were discovered but never crawled successfully. Rejected quality means crawled and deliberately not indexed. Link bleeders (suspected duplicates) is an inference PruneSEO makes by comparing Google's chosen canonical against the page's own declaration, not something Google returns. Other findings collects soft 404s, robots exclusions and fetch errors. Not yet measured is the honest bucket for anything inventoried but not inspected, and it is not a good result.

Then each pattern becomes a campaign of one of five kinds:

Campaign kindWhat it does
PruneRetire URLs permanently with a 410, or redirect with a 301
NoindexKeep the page but remove it from the index
CanonicalPoint the page at the version you want ranked
Recrawl nudgeRe-submit through a micro-sitemap
Internal linksRedirect internal link equity away from dead paths

And each campaign produces files: an nginx map block, an Apache .htaccess file, a redirect CSV, a robots.txt fragment, a noindex directive set, a canonical manifest, a sitemap micro-sitemap, or an internal-link plan CSV.

# nginx map block for /search?q=* — 86,551 URLs
map $arg_q $search_block {
default 0;
"~." 1;
}

location /search {
if ($search_block) {
return 301 /search-results?category=$arg_category;
}
}

A robots.txt fragment for the same pattern:

# Block filtered search permutations, allow the clean landing page
Disallow: /search?
Allow: /search

# Block paginated tag archives beyond page 3
Disallow: /tag/*?page=4

One thing to know before you send anything. PruneSEO never changes your website. It produces files describing changes; applying them belongs to you or your developer. Review them before they go near production.

One platform exception worth stating plainly. Shopify cannot serve a 410. Its redirects are 301-only, so pruning a page there hides it from sitemaps, search indexing and storefront search, while the page still returns 200 to anyone holding the URL. Saying "we sent it to 410" on Shopify would be false, so we do not say it.

Cost: a campaign ceiling of 100,000 targets, which is a blast-radius limit rather than a product limit. Duration: minutes.

What to do first on a site that is drowning​

If you have been putting this off because the site feels too big to start, do these five things in order and ignore the rest until they are done.

  1. Pull every sitemap file. Ten minutes. You get the declared inventory for free.
  2. Count your URL families, not your URLs. How many distinct templates do you have? Usually a single digit on the patterns that matter.
  3. Run one crawl. Let it find what the sitemaps missed. This is where the orphans show up.
  4. Look at the biggest cluster first. It is almost always search parameters, pagination or archive dates, and it is almost always the majority of the waste.
  5. Sample that one cluster and get a number. One number with an interval attached is enough to open a conversation with whoever owns the site.

You do not need the whole inventory to start. You need one pattern with a defensible figure and a file that says what to do about it.

Why the sequence matters​

Inventory, crawl, cluster, inspect, decide is not an arbitrary order. Each stage is cheaper than the one after it, and each one makes the next one cheaper still. Skipping to inspection means inspecting URLs at random and finding nothing coherent. Doing clustering before inventory completion wastes the crawl. Building the campaign before clustering means writing 500,000 individual decisions instead of five.

Run it end to end and the numbers stay sane: a few thousand fetches of crawl, a handful of clusters, a few hundred inspections, and a set of files a developer can actually read. That is what an audit of a 500,000-URL site looks like when it is done properly.

The crawl budget explained post goes deeper on what the 5,000-fetch ceiling does and does not buy you. The sampling post covers the arithmetic behind the sample sizes in stage four. The campaigns and artifacts guide shows what comes out of stage five.