Key takeaways

  • Technical SEO debt is the pile of old shortcuts on a site: outdated PHP, a theme nobody updates, abandoned plugins, redirect chains, orphaned practice pages, old URL patterns, oversized images, dead shortcodes and HTTP leftovers.
  • Pay it down in order: inventory, then the platform, then redirects and URLs, then orphaned pages and shortcodes, then HTTP leftovers and images.
  • Google advises against chained redirects, recommends redirecting to the final destination directly and keeping redirects generally for at least a year.
  • Every practice page you care about needs a link from at least one other page on the site.
  • Do platform work on a staging copy with a full backup, one layer at a time.

Most law firm websites I am asked to look at were built years ago, extended by several people since and rarely cleaned up. Every quick fix stays behind, and together they become technical SEO debt: problems that cost a little crawl efficiency, speed or trust every month until someone pays them back. A WordPress SEO audit focused on technical SEO debt is usually where that repayment starts, and this article is about the order I would do it in.

If you want the wider checklist for an attorney website, including content, local signals and conversion paths, my guide to a law firm SEO audit covers that ground. Here I stay with the technical layer underneath it.

I first published this article in 2025 and have rewritten it. The old version quoted percentages I cannot source, so they are gone.

What technical SEO debt looks like on an older law firm site

A practice area is added, a partner leaves, the firm rebrands, one agency installs a page builder and the next installs another. Nobody removes what came before, because nobody is sure what depends on it.

Debt What it usually looks like Why it matters
Outdated PHP and theme End-of-life PHP, a parent theme edited directly Security exposure, updates put off for years
Abandoned plugins No updates from the author, or two plugins doing one job Conflicts, extra scripts on every page
Redirect chains Old URL to rebrand URL to HTTPS URL to current URL Slower for users, more work for crawlers
Orphaned practice pages Old practice or attorney pages linked from nowhere Hard to find, often outdated
Old URL structures Date-based URLs, two folder patterns for practice areas Duplicate paths, more redirects with every change
Image bloat Camera-size photos as headers and portraits Heavy pages, slow on phones
Legacy shortcodes Codes from a removed plugin showing as plain text Broken-looking pages
HTTP leftovers Images, scripts and links still on http:// Mixed content, avoidable redirects

None of this is unique to law firms. The difference is the cost: a practice page that quietly stops being found sends enquiries to the next firm.

Start with an inventory, not a fix

The common mistake is starting with the easiest problem rather than the one that blocks the others. Before changing anything, I write down:

  • The PHP and WordPress versions, and whether the theme is a child theme or an edited parent theme.
  • Every plugin, active or not, with its last update date and its job.
  • A full crawl, plus the URLs Google knows about from Search Console and the XML sitemap. Comparing the three lists is how orphaned pages show up.
  • An export of every redirect, in plugins and server configuration.
  • The heaviest pages and images, and every template still loading something over http://.

Free tool · SEO ROI Calculator

Not sure which practice areas deserve the first clean-up? Estimate what their main keywords could be worth.

Enter search volume, CPC and your current ranking to estimate traffic, revenue and value for a keyword. Free.

Calculate your SEO ROI →

Step 1 – Fix the platform first

PHP, WordPress core, the theme and the plugins come first because everything else sits on top of them.

A layered stack whose old bottom layer has been taken out and replaced, while the upper layers wait on a separate tray before going back on top
Figure 1. Repair the foundation first, one layer at a time, on a staging copy.

The official WordPress requirements page currently recommends “PHP version 8.3 or greater” and lists HTTPS support among its host recommendations. About older versions it is blunt: “these versions have reached their official End Of Life and may expose your site to security vulnerabilities.” If your host is part of the problem, I cover that in how hosting affects technical SEO on WordPress.

The order I follow:

  1. Take a full backup of files and database, and build a staging copy.
  2. Remove plugins that are inactive, abandoned or duplicating another plugin’s job.
  3. If the theme was edited directly, move those edits into a child theme or plan a replacement.
  4. Raise the PHP version on staging and test every template type: home, practice page, attorney profile, blog post, contact form. Then repeat on the live site.
  5. Update core and the remaining plugins one at a time, checking the contact forms after each.

A form that silently stops sending enquiries is a bigger problem for a law firm than any ranking change.

Step 2 – Flatten redirect chains and settle the URL structure

Older law firm sites often carry three or four generations of URLs: a redesign moved practice areas into a new folder, HTTPS added a hop, someone removed the trailing slash. Each change stacked redirects on the old ones.

A long chain of linked pages crossed out above, and below it several old pages each pointing straight to one final page
Figure 2. Replace redirect chains with single hops from each old URL to its final destination.

Decide the final URL structure first, then point every old URL straight at its final destination. Google’s guide to site moves with URL changes says “Avoid chaining redirects” and “we advise redirecting to the final destination directly”. It also asks you to “Change the internal links on the new site from the old URLs to the new URLs”.

Google’s page on redirects and Google Search recommends “a permanent server-side redirect whenever possible” and says 301 and 308 mean a page “has permanently moved to a new location”. A 302 is temporary, so a redesign that left hundreds of 302s behind sends the wrong message. As for how long, the site move guide says “Keep the redirects for as long as possible, generally at least 1 year.” For old practice URLs with links from directories and press, I keep them much longer.

When a page has no replacement, a 404 or 410 is honest. Redirecting every dead URL to the home page is not a fix, and I cover the alternatives in redirect moves that protect your rankings.

Step 3 – Rescue or retire orphaned practice pages and legacy shortcodes

With the URLs settled, compare your crawl with the URLs Google and your sitemap know. Pages linked from nowhere on the site are orphans: practice pages for dropped services, profiles of attorneys who left, old location pages.

A connected network of pages with three isolated pages beside it, one linked in, one merged into a network page and one moved to a bin
Figure 3. Each orphaned page is either linked back in, merged into a stronger page or retired.

Google’s guidance on crawlable links says “Every page you care about should have a link from at least one other page on your site.” It also notes that Google “can’t reliably extract URLs from <a> elements that don’t have an href attribute”, which matters on older themes with JavaScript menus. For each orphan I make one of three decisions:

  • Rescue it if the firm still offers the service and the page is accurate. Link it from the practice area hub and related pages.
  • Merge it if a newer page covers the same matter better. Move anything useful across and redirect the old URL.
  • Retire it if the service or person is gone. Let it return 404 or 410 and remove it from the sitemap.

Legacy shortcodes belong in the same pass. When the plugin or theme that registered a shortcode is removed, WordPress no longer knows what to do with it, so the bracketed code shows as plain text. I search the database for them and replace each with plain blocks or the current equivalent. A practice page with [old_testimonial_slider] printed in the middle does not inspire confidence in a firm.

Free tool · Ping My URL

Rescued an orphaned practice page or fixed its internal links? Let search engines know it has changed.

Notify Google and other search engines about up to 5 new or updated URLs at once. Free, no sign-up.

Ping your URLs →

Step 4 – Clear HTTP leftovers and image bloat

Most older sites moved to HTTPS years ago, often with a redirect and nothing else. The database still holds http:// links in posts, widgets, theme settings and image paths, and each one sends visitors through a redirect on your own site.

It can also break things. MDN’s page on mixed content explains that browsers auto-upgrade image, video and audio requests from HTTP to HTTPS, and “block insecure requests for all other resource types”. An old http:// image may still load while an http:// script for a chat widget or intake form is blocked. Run a search and replace on the database on staging, with a tool that handles serialised data.

Google’s image SEO best practices say “images are often the largest contributor to overall page size, which can make pages slow and expensive to load.” It recommends responsive images with srcset or the picture element, with a fallback src, and lists WebP and AVIF among the formats Google Search supports. In practice:

  • Resize attorney portraits and office photos to the largest size the theme displays, then compress them.
  • Check that the theme outputs srcset so phones get smaller files.
  • Write plain, descriptive alt text, not lists of keywords.

Keep the debt from coming back

The firms that stay clean have one person who owns the website, inside or outside the firm, and a short routine:

  • Monthly: updates on staging first, a contact form check, a look at the Search Console Pages report for new errors.
  • Every URL change: one redirect straight to the final page, and internal links updated the same day.
  • Every departing attorney or retired service: a decision to update, merge or retire the page.

Rank Check Reports

Paying down technical SEO debt in stages? Record where your practice pages rank before and after each step.

A live Google check of your keywords on desktop and mobile · from $14.99 per check · no subscription · report within one working day

Order a rank check report →

FAQ

What is technical SEO debt?

It is the build-up of old shortcuts and unfinished work on a website, such as outdated software, redirect chains, orphaned pages and leftover code, that makes the site harder to crawl, slower to load or riskier to update.

What should a law firm fix first on an old WordPress site?

Take an inventory, then fix the platform: backups, staging, plugin clean-up, theme and PHP updates. Redirects, orphaned pages and HTTP leftovers come after, because platform changes can affect all of them.

Is it better to rebuild the site than pay the debt down?

Sometimes. If the theme cannot be updated and most templates need replacing anyway, a planned rebuild can be cheaper. It still needs the same inventory and redirect map.

Eugen Platon

Eugen Platon

Director of SEO & Web Analytics at onwardSEO
Eugen Platon is a highly experienced SEO expert with 16+ years of experience propelling organizations to the summit of digital popularity. Eugen, who holds a Master's Certification in SEO and is well-known as a digital marketing expert, has a track record of using analytical skills to maximize return on investment through smart SEO operations. His passion is not simply increasing visibility, but also creating meaningful interaction, leads, and conversions via organic search channels. Eugen's knowledge goes far beyond traditional limits, embracing a wide range of businesses where competition is severe and the stakes are great. He has shown remarkable talent in achieving top keyword ranks in the highly competitive industries of gambling, car insurance, and events, demonstrating his ability to traverse the complexities of SEO in markets where every click matters. In addition to his success in these areas, Eugen improved rankings and dominated organic search in competitive niches like "event hire" and "tool hire" industries in the UK market, confirming his status as an SEO expert. His strategic approach and innovative strategies have been successful in these many domains, demonstrating his versatility and adaptability. Eugen's path through the digital marketing landscape has been distinguished by an unwavering pursuit of excellence in some of the most competitive businesses, such as antivirus and internet protection, dating, travel, R&D credits, and stock images. His SEO expertise goes beyond merely obtaining top keyword rankings; it also includes building long-term growth and optimizing visibility in markets where being noticed is key. Eugen's extensive SEO knowledge and experience make him an ideal asset to any project, whether navigating the complexity of the event hiring sector, revolutionizing tool hire business methods, or managing campaigns in online gambling and car insurance. With Eugen in charge of your SEO strategy, expect to see dramatic growth and unprecedented digital success.
Eugen Platon
Check my Online CV page here: Eugen Platon SEO Expert - Online CV.