How to Fix Broken Links After a Domain Transfer

How to Fix Broken Links After a Domain Transfer

SEO guide explaining how to fix broken links after a domain transfer. Learn the best practices, setups, and automation tricks.

SEO TLDix Editorial Team Published: Updated: 6 min read

What a domain transfer actually changes

“Domain transfer” can mean two very different things, and the fix for broken links depends on which one happened.

  • A registrar transfer moves the registration of the same domain from one registrar to another. The name stays the same. If DNS is handled correctly, visitors should notice nothing.
  • A domain migration moves a website from one domain name to another, for example after a rebrand or an acquisition. Every URL changes, so every old link needs a redirect.

In practice, many transfers also involve moving DNS hosting, switching web hosts or reissuing SSL certificates at the same time. That is usually where links break. This guide walks through diagnosing the cause and repairing it in a sensible order. If you have not transferred yet, read our domain transfer lock guide and our explanation of transfer authorisation codes first.

⚡ TLDix Instant Tools

Inspect Any Domain and Web Hosting Instantly

Inspect the infrastructure of any domain or website in seconds using TLDix WHOIS Domain, Hosting Lookup and Domain Oracle (AI).

🔍 Domain WHOIS 🖥️ Hosting Lookup 🔮 Domain Oracle ✨ Sign Up Free →

Step 1: Confirm DNS survived the transfer

The most common cause of a site going dark after a registrar transfer is DNS. Some registrars provide free DNS that stops working once the domain leaves them, and the new registrar may assign its own default name servers with an empty zone.

Check which name servers are now in use and whether key records resolve:

dig NS example.com +short
dig A example.com +short
dig A www.example.com +short
dig MX example.com +short

Compare the results with a saved copy of your old zone. If records are missing, recreate them at the current DNS provider, or point the name servers back to the provider that holds the correct zone. Changes can take time to be visible everywhere, depending on TTL values; our article on how DNS propagates explains why.

You can also run a lookup with the TLDix WHOIS and RDAP tool to confirm the registrar, status codes and name servers listed at the registry, which helps rule out a transfer that is still pending.

Step 2: Check hosting and SSL

If DNS points to a new server, the site files, virtual host configuration and certificates must exist there too. Typical symptoms and causes:

SymptomLikely causeFix
Browser certificate warningCertificate not installed for the domain on the new serverIssue or reinstall a certificate covering both apex and www
Home page works, inner pages return 404Rewrite rules or permalinks not configuredRestore .htaccess or server rewrite config; resave CMS permalinks
Default hosting placeholder pageVirtual host missing or wrong document rootAdd the domain to the server configuration
Mixed content warningsHard-coded http:// asset URLsUpdate asset paths to https:// or relative URLs
Email bouncingMX or SPF records not recreatedRestore mail records from your old zone
www and non-www behave differentlyOnly one hostname configuredConfigure both and redirect one to the other

The TLDix hosting lookup shows which provider an IP address belongs to, a quick way to confirm traffic is reaching the server you expect.

Once the site loads, find what is still broken. Use several sources, because each sees a different part of the picture.

Crawl the site

A site crawler follows internal links and reports status codes. Look for 404 and 410 responses, redirect chains, redirect loops and links that still point to an old domain. A simple check for a single URL looks like this:

curl -sI https://example.com/old-page | head -5

Read your server logs

Logs show what real visitors and crawlers request, including old URLs linked from other sites that a crawl of your own pages will never find:

grep " 404 " /var/log/nginx/access.log | awk '{print $7}' | sort | uniq -c | sort -rn | head -50

Use Google Search Console

The Page indexing report lists URLs Google tried to crawl that returned “Not found (404)”. The Links report shows top linked pages, so you can make sure the most valuable ones resolve correctly.

Step 4: Map redirects for a domain change

If you moved to a new domain name, every old URL needs a permanent redirect to its closest equivalent. Build a mapping spreadsheet with the old URL, the new URL and the status code. Rules of thumb:

  • Use 301 (or 308) redirects for permanent moves.
  • Redirect each page to its specific replacement, not everything to the home page. Google may treat mass redirects to the home page as soft 404s.
  • Avoid chains. Old URL should go straight to the final URL in one hop.
  • Keep the path structure where possible so a single pattern rule covers most pages.
  • Keep redirects in place for at least a year; Google recommends this for site moves, and keeping them longer does no harm because external links persist.

When paths are unchanged, a single server rule handles the whole domain. For Nginx:

server {
    listen 443 ssl;
    server_name old-example.com www.old-example.com;
    ssl_certificate     /etc/ssl/old-example.com/fullchain.pem;
    ssl_certificate_key /etc/ssl/old-example.com/privkey.pem;
    return 301 https://new-example.com$request_uri;
}

For Apache with mod_rewrite:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www[.])?old-example[.]com$ [NC]
RewriteRule ^(.*)$ https://new-example.com/$1 [R=301,L]

Note that the old domain still needs a valid certificate. Otherwise HTTPS visitors see a warning before the redirect can happen.

Redirects are a safety net, not the final fix. Update your own references so users and crawlers reach the destination directly:

  • Search and replace the old domain in your database and templates. Back up first, and use a tool that handles serialised data if your CMS stores it.
  • Update canonical tags, hreflang annotations and Open Graph URLs.
  • Regenerate XML sitemaps with new URLs and submit them in Search Console.
  • Update robots.txt if it references sitemap locations.
  • Check structured data, analytics settings, CDN rules and third-party scripts that reference the old hostname.

For a move to a new domain, verify both the old and new properties in Search Console and use the Change of Address tool from the old property. It requires the 301 redirects to be in place and helps Google move signals to the new site more smoothly. Expect rankings and traffic to fluctuate for some weeks; the length varies by site size and crawl frequency.

Then contact the owners of your most valuable external links, such as partner sites, directories and profiles you control, and ask them to update the URL. Redirects will carry visitors either way, but direct links are more robust if the redirects are ever removed.

A realistic recovery timeline

How quickly a site recovers depends on what went wrong. The table below gives rough expectations; actual timing varies with TTL values, site size and how often search engines crawl you.

ProblemTime to fixTime for full recovery
Missing DNS recordsMinutes once identifiedUp to the old TTL, often a few hours
Certificate missing on new serverMinutes with automated issuanceImmediate for visitors
Rewrite rules not configuredMinutes to an hourDays, as crawlers revisit pages
Full domain migrationDays to plan and implement redirectsSeveral weeks or longer for search signals to settle

Prioritise by value

When there are hundreds of broken URLs, do not work alphabetically. Start with pages that receive the most external links, the most organic traffic and the most conversions. Your analytics, the Search Console Links report and server logs together show which URLs carry real value. Fix those first, then work through the long tail in batches.

Document what you did

Keep the redirect map, the old DNS zone export and a short log of changes in a shared place. If something breaks months later, or a colleague changes server configuration, that record makes it far easier to see which rules must stay. It also helps if you ever move the site again, because old redirects need to be carried forward rather than replaced, otherwise links that pointed at the first domain will break a second time.

Most transfer problems are avoidable with preparation:

  • Export the complete DNS zone before starting any transfer.
  • Lower TTLs a day or two before changing name servers, then raise them again afterwards.
  • Crawl the site beforehand and save the URL list as your redirect baseline.
  • Check that certificates will be valid on any new server before switching DNS.
  • Keep the old domain registered after a migration. If it expires, someone else can buy it and your redirects disappear.

That last point is easy to forget. Adding both old and new domains to the TLDix domain panel gives you expiry alerts for each, so a redirecting domain does not lapse quietly years later.

Frequently asked questions

Will moving my domain to another registrar affect SEO?
Changing only the registrar does not affect SEO, because the domain name, URLs and content stay the same. Search engines do not care which company holds the registration. Rankings can suffer only if the site becomes unreachable during the move, usually because DNS records were lost or name servers changed. Keep DNS unchanged or recreate the zone exactly, and visitors should notice no difference.
How long should I keep redirects from an old domain?
Google recommends keeping site move redirects for at least one year, so it can process the change and transfer signals. Many site owners keep them indefinitely, because external links, bookmarks and printed materials continue sending visitors to old addresses. That requires renewing the old domain and keeping a valid certificate on it, which is usually a small cost compared with losing that traffic.
Why do my inner pages 404 when the home page works?
This usually means URL rewriting is not configured on the new server. Content management systems rely on rewrite rules to map friendly URLs to their scripts. On Apache, check that the .htaccess file was copied and mod_rewrite is enabled. On Nginx, confirm the try_files directive. In WordPress, saving the permalink settings again often regenerates the rules.
Can I redirect all old pages to the new home page?
You can, but it is a poor solution. Visitors arriving from a link to a specific article land somewhere unrelated, and Google may treat blanket home page redirects as soft 404 errors, meaning the old page’s signals are not passed on. Map each important URL to its closest equivalent, and use the home page only for pages that genuinely have no replacement.
Do I need an SSL certificate on a domain that only redirects?
Yes, if anyone reaches it over HTTPS, which is the default for most browsers and nearly all links today. The browser negotiates TLS before it receives the redirect response, so without a valid certificate users see a security warning and many will not continue. Free automated certificates make covering redirect-only domains easy and inexpensive.
Frequently Asked Questions

Everything You Need to Know

Find answers about domain lookups, WHOIS, pricing, and AI Domain Oracle on TLDix.com.