A technical SEO case study on removing 45,000 hacked URLs with HTTP 410, rebuilding crawl budget, and restoring topical authority for a London property finance advisory firm.
- Total impressions, last 12 months: 313K
- Total clicks, last 12 months: 3.15K
- Average position, last 12 months: 22.5
- Impressions growth, last 3 months: +60% (152K)
- Clicks growth, last 3 months: +45% (1.17K)
- Impressions in Google's AI Overviews and AI Mode, last 6 months: 30.7K
- Hacked URLs cleared from the index: from about 45,000 down to 2,550
- Time to first measurable lift: roughly six weeks from the start of the 410 cleanup
The client is a regulated property finance advisory firm in London. They arrange bridging loans, development finance, commercial mortgages, and second charge lending for UK borrowers and SME landlords. Their team has decades of combined experience inside UK banks and specialist lenders. The deals are real, the credentials are verifiable, the regulatory footprint is intact.
What the firm did not have was visibility on Google. For seven years. Before they came to us, the site sat with an offshore agency running £150-a-month "SEO": spun content, footprinted backlinks, zero technical hygiene. At some point during that stretch the WordPress install was compromised. Attackers used the domain as a doorway farm. At peak, around 45,000 hacked URLs sat in Google's index, almost all of them serving spam from injected templates. By the time the firm reached us, organic performance had dropped to roughly 100 impressions a day. Branded queries for the firm's own name barely surfaced. Service page rankings were nonexistent. The site was, for all practical purposes, deindexed by neglect.
the hack was still hurting the site years later
Cleaning a hacked WordPress install does not remove the damage from Google's index. Google had already crawled, evaluated, and stored 45,000 injected URLs. The malware was gone from the server, but the URLs were not gone from Google.

Most of the hacked URLs now returned a 404. Googlebot kept re-crawling them anyway. Crawl budget was burning on dead pages. A separate layer of 5xx server errors was firing whenever Google touched the broken PHP that the partial cleanup had left behind. The technical layer had to be fixed before any content work would matter.
why 404 is not enough for hacked URLs at scale
HTTP 404 means "I cannot find this resource." It is non-committal. HTTP 410 means "this resource is gone, intentionally and permanently, and is not coming back." It is explicit. For Googlebot, the difference is meaningful. John Mueller of Google Search Relations has stated that 410 is processed slightly faster than 404 for deindexation because 410 is unambiguous. A 404 leaves the door open. A 410 closes it. At scale, with tens of thousands of URLs to clear, "slightly faster" becomes months of saved crawl budget.
We did not handle the 45,000 URLs one at a time. We ran a pattern-based sweep.
- Log analysis: We isolated every URL Googlebot had requested over 90 days.
- Pattern identification: We identified around a dozen URL patterns that covered roughly 95% of the hacked footprint.
- Server level 410 rules: We wrote rewrite rules at the Apache layer that returned a 410 Gone response for any URL matching a hacked pattern.
- Verification: We used the URL Inspection API in Search Console to confirm each pattern was returning 410.
The 5xx errors were a separate problem. We applied the same logic, returning a 410 at the server level so the broken PHP would never execute.
small, segmented, topical
We rebuilt the XML sitemap from scratch, capping each sitemap at 200 URLs and segmenting them by content type. We did this for two reasons:
- Freshness signalling: The proportional signal of changes is stronger in a smaller sitemap.
- Topical clarity: Each sitemap maps onto a topical cluster on the site, making those boundaries legible to the crawler.
The technical foundation was done. Content was next.
- Entity front loading: Every rebuilt service page now opens with a four-block structure: Entity declaration, Primary attributes, Audience, and Differentiator.
- Writing for semantic triplets: We write each factual sentence with one clear claim, avoiding passive voice and ambiguous pronouns so Google can parse the facts.
- E-E-A-T as structure: We built Experience, Expertise, Authoritativeness, and Trust into the structure of every service page through real deal examples, verifiable credentials, and primary source citations .
- Solving real borrower problems: We wrote each service page around an actual problem a borrower would arrive with, covering structures, trade-offs, timelines, and costs.
- Query analysis before writing: We mapped the predicates (verb-and-object structures) of the query domain, not just the keywords.
- Visual semantics: We rebuilt the front end with a restrained type system, a brand-appropriate color palette, real photography, and a predictable navigation structure to communicate trustworthiness through user behavior .
We made a deliberate decision not to use ChatGPT or any LLM to generate keyword lists. Instead, we ran manual SERP-by-SERP analysis to find queries that do not trigger an AI Overview and queries with sparse, low-authority competition.
The content still found its way into AI search. Because the pages answer real borrower questions in clear, citable sentences, Google's AI Overviews and AI Mode now pull them in as sources. The results section shows how fast that has grown.
A year ago the site was effectively invisible, at around 100 impressions a day. The work is still compounding as Google keeps rediscovering the real site.

The growth is accelerating, not levelling off. In the last three months alone the site earned 152,000 impressions and 1,170 clicks, up 60% and 45% on the three months before. The homepage and the team page lead on clicks, which shows people searching for the firm by name and checking who they would deal with. The fastest growth comes from the borrower guides: a page answering whether a first-time buyer can rent out their home is up 74%, and a guide to the legal and tax risks of living in a buy-to-let went from 7 clicks to 118.

The site is also showing up where search is heading. Search Console's new report on Google's AI features counts 30,700 impressions in AI Overviews and AI Mode over six months, rising from about 30 a day in May to between 350 and 400 a day by late October. For a regulated finance firm, being cited inside Google's own AI answers is a strong trust signal.

| Metric | Value | Window |
|---|---|---|
| Total impressions | 313,000 | Last 12 months |
| Total clicks | 3,150 | Last 12 months |
| Average CTR | 1% | Last 12 months |
| Average position | 22.5 | Last 12 months |
| Impressions growth | +60% (152,000) | Last 3 months vs previous 3 |
| Clicks growth | +45% (1,170) | Last 3 months vs previous 3 |
| Impressions in Google AI features | 30,700 | Last 6 months |
| Not indexed URLs | 2,550 (from 45,000) | May 2026 |
| Indexed URLs | 118 | May 2026 |
- Drain residual URLs: Canonicalize or noindex the remaining low-value pages.
- Expand the topical map: Build supporting content clusters around central entities.
- Run an internal linking audit: Use a predicate-first model.
- Build off-site authority: Begin off-site work next quarter.
- Deploy schema: Add Article, Service, FAQPage, and Organization schema with attention to AI Overview attributes.
- Fix the crawl signal before anything else.
- Use 410, not 404, for pattern-based removal at scale.
- Segment the sitemap.
- Write content around entities and predicates.
- Solve the user's actual problem.
- Treat E-E-A-T as structure, not garnish.
- Treat design as a ranking signal.
- Do not let an LLM choose your keywords.

