On this page
- Key Takeaways
- 1. Define the old hostnames and where to search
- Search a local content repository
- 2. Record each reference before making changes
- 3. Check domain control and destinations separately
- 4. Choose an action for each link
- Update owned references
- Maintain redirects when you control the old hostname
- Remove links with no valid replacement
- Request third-party changes
- 5. Verify and maintain the inventory
- Common Mistakes
- Best Practices
- Conclusion
When a former company domain changes hands, links that once led to your content may now lead somewhere else. The first job is to find the references you can control, record what they were intended to do, and decide whether to update, redirect, or remove each one.
This workflow is for website owners and content managers managing a rebrand or discontinued domain. It does not assume you still own the former domain.
Key Takeaways
- Inventory links before changing them: record the source, responsible owner, intended destination, current destination, and proposed action.
- Check domain control separately from what a URL currently displays. A working page does not prove that your company controls the domain.
- Update links in properties you control. Ask third-party owners to update their links; you generally cannot edit those references yourself.
- If you control the old domain, a relevant redirect can help preserve existing links. If you do not, you cannot configure one there.
- Remove a link when there is no appropriate replacement, rather than sending readers to an unrelated page.
1. Define the old hostnames and where to search
Start with a list of former hostnames, not just the best-known domain. Include known subdomains, such as a former documentation or campaign host, and any alternate hostname used in published links. In the examples below, old-brand.example and new-brand.example are fictional.
Search these sources if your organization controls or has access to them:
- Website pages, templates, navigation, footers, and CMS content.
- Documentation repositories, help-center articles, downloadable documents, and their source files.
- Campaign landing pages, email templates, scheduled messages, advertisements, and social profiles.
- Shared campaign spreadsheets, design files, and link-management records.
- Application configuration and content exports, where they contain links visible to users.
Also note relative links in content served from the former hostname. A reference such as /support may not contain the hostname in the source file, but it still depended on that hostname when the page was published.
Separate owned references, which your team can edit, from third-party mentions, such as another publisher's article or a partner's directory listing. Search results, referral reports, and partner records can help discover outside references, but none is necessarily a complete inventory. If the old site is no longer accessible, use available backups and exports; record any gaps.
Advertisement
Search a local content repository
If you have a local copy of a website or documentation repository and the rg command is installed, run this from the repository root:
rg -n -i --hidden -F -e 'old-brand.example' --glob '!.git/**' --glob '!node_modules/**' --glob '!dist/**' .
The command searches text files for the hostname and reports matching lines. It excludes several directories that may contain repository metadata, dependencies, or generated files. Review the exclusions for your project: a generated file may itself be published and need attention. The search also respects ignore rules by default, and it will not reliably find links inside every binary document, CMS database, or encoded URL. Search those sources separately using the tools available to you.
This command has not been executed for this article. Review matches before editing: a hostname can appear in historical prose or as part of another hostname, not just in an active link.
2. Record each reference before making changes
Use a spreadsheet, issue tracker, or shared inventory. Create one row per source location and old URL; the same URL may require different owners or actions across several pages. Capture at least:
| Field | What to record |
|---|---|
| Source location | Page URL, file path, template name, campaign, or third-party page containing the reference. |
| Reference and context | The complete old URL, link text, and why the link was included. Include path, query, and fragment where present. |
| Owner | The person or team responsible for the source. For a third-party page, record the publisher or partner contact if known. |
| Intended destination | The original content or task the link was meant to support. |
| Current destination | The final destination and relevant redirect steps, or not checked / unable to verify. |
| Proposed action | Update, redirect, remove, request a third-party update, or investigate. Record the proposed replacement if any. |
| Status | Assignee, review status, verification result, and any follow-up needed. |
For example, an owned help article might link to https://old-brand.example/support, with the support team as owner and a replacement support page proposed. A partner directory might contain the same old URL but require a request to the partner rather than an internal edit. These are illustrative records, not verified destinations.
Preserve the original URL in the inventory even after editing the source. It helps reviewers understand what changed and identify other references to the same destination.
3. Check domain control and destinations separately
Domain control means whether an authorized person at your organization can manage the registration and relevant DNS settings. Ask the responsible administrator to check the authenticated registrar and DNS accounts, ownership records, and renewal arrangements. Confirm which hostname is covered: control of one service or hostname should not be assumed to cover every former subdomain.
Destination verification means determining what happens when a particular URL is requested now. A domain may still be controlled by your organization while a specific path is broken or redirects incorrectly. Conversely, a familiar-looking page at an old URL is not proof that you control the domain.
Treat an unexpectedly changed domain as untrusted:
- Record the exact URL and who needs to investigate it. Do not enter credentials, submit forms, or download files from an unfamiliar destination.
- Where appropriate, have an authorized person inspect the destination and any redirects using your organization's approved, isolated process. Avoid automatic link previews or bulk requests to unfamiliar sites unless your security team permits them.
- Record what was checked and when, including any final destination or failure. A result is a snapshot, not a guarantee that the URL will remain safe or unchanged.
- Escalate unexpected ownership or destination changes to the domain administrator and security team. Use established registrar or legal channels if recovery is being considered; do not assume recovery is possible.
A URL parser can help a reviewer distinguish a hostname from a path or query, but parsing a string does not establish domain ownership, search your website, or make a destination safe. Compare the parsed hostname itself against your inventory rather than treating every string containing the old hostname as a match.
Advertisement
4. Choose an action for each link
Update owned references
When an equivalent page exists, replace the old URL with the current canonical destination in each controlled source. Check that the new page serves the same reader need, not merely that it belongs to the new brand. Update link text and surrounding instructions if they refer to obsolete names or processes.
Review paths, query parameters, and fragments individually. A query parameter may carry campaign or application meaning; a fragment may point to a section that no longer exists. Keep or change them only when they are still appropriate, and check the resulting link in the destination environment.
Maintain redirects when you control the old hostname
If your organization still controls the old hostname and can configure its web service, map important old paths to relevant new pages. A redirect from an old product guide to its replacement is more useful than sending every old URL to the homepage.
Document the mapping, assign an owner, and verify representative paths and redirect chains after deployment. Consider whether query parameters need to be preserved and whether old fragment identifiers still work at the destination. Redirect behavior can depend on the server and the particular URL; verify it rather than assuming all details carry across.
A permanent redirect may be suitable for a settled migration, but it can be cached. Review mappings before deploying and keep the old domain and redirect service renewed and monitored for as long as your organization intends to support them. Redirects do not replace updating links you control.
If someone else controls the former domain, you cannot configure its redirects. Update your own references and contact third-party publishers instead.
Remove links with no valid replacement
If the referenced service or content has genuinely ended and there is no equivalent resource, remove the link or revise the surrounding sentence so it remains useful without one. Do not point readers to an unrelated page merely to avoid a broken link. For historical or legal records that should not be silently altered, follow your organization's retention and annotation process.
Request third-party changes
For each external reference, identify a suitable contact and provide the source page, the old URL, and the exact replacement or requested removal. Track the request and recheck later. If the publisher does not respond, record the residual risk; do not count an outreach request as a completed update.
5. Verify and maintain the inventory
After changes are deployed, revisit the owned source pages and check that each revised link points to the intended content. Test representative campaign and documentation links in their actual publishing environments, including scheduled templates that may be sent later. Have the responsible owner confirm completion in the inventory.
Repeat the hostname search after updates, then review remaining matches rather than assuming every match is wrong. Some may be approved historical references, records of the migration, or third-party references outside your control. Keep unresolved items assigned and review old-domain control and redirect operation on an agreed schedule.
Common Mistakes
- Replacing every hostname blindly. Paths and content may have changed, and some mentions may be historical rather than links.
- Treating a successful page load as proof of ownership. Verify control through authorized account and administration records separately.
- Redirecting every old path to the homepage. This can leave readers without the content they expected.
- Forgetting non-website materials. Scheduled emails, PDFs, and partner listings can retain old links after a site migration.
- Closing an external item after sending a request. The publisher must still make the change.
Best Practices
Assign a domain owner and a content owner before a rebrand or retirement. Keep an approved hostname list, an inventory of important paths, and a record of redirect decisions. Review replacements for relevance and involve security staff when an old domain's destination changes unexpectedly.
Conclusion
Start with an inventory, verify control and destinations independently, and choose an action for each reference. Updating your own content, maintaining relevant redirects where possible, and tracking third-party requests gives the cleanup a clear owner and an auditable status.
What would your domain sell for?
A free TidyURLs account unlocks the Domain Estimator. It prices a name from 191,011 real domain sales.