Skip to main content

Fix Broken Links in Multiple Word Documents

Every website redesign, intranet move or domain change leaves old addresses behind in places nobody thinks to check. Policy manuals, onboarding guides, training handouts, reports and templates all contain hyperlinks, and each one that points to a retired page returns an error to the reader. Help desks then field the same complaint repeatedly: the document says to click a link, and the link does not work.

WordPipe is a batch editor for Microsoft Word. It applies a list of search and replace pairs to every DOC, DOCX and RTF file in the folders you choose. For IT teams, that makes a URL migration a scripted job rather than a document-by-document chore. This guide explains how to fix broken links in multiple Word documents after a migration, how to prepare the redirect list, and which mistakes cause the most rework.

When to Use This

Batch link repair suits situations where the same old address appears in many files and the new address is known in advance:

  • Domain change. The organization moves from one domain to another and every link shares the old host name.
  • HTTP to HTTPS. Links still use the insecure scheme, and browsers or security tools now warn on them.
  • Intranet or SharePoint migration. Documents move to a new platform and the path structure changes, for example from a file share path to a site URL.
  • CMS replacement. A new content system produces different page slugs, so a page such as /products/item.aspx?id=12 becomes /products/widget.
  • Retired resources. A vendor portal, wiki or download page is closed, and each reference must point to its replacement.

If you are changing links as part of ongoing maintenance rather than a one-off migration, see updating hyperlinks in thousands of Word documents. If the documents also contain internal cross-references, read about batch updating hyperlinks and bookmarks in Word.

Step-by-Step Configuration

  1. Build the redirect map. Take the old-to-new list from the migration plan or from the web server's redirect rules. Crawl the old site if no list exists, and record each old address with its new home.
  2. Enter pairs, most specific first. Put full page addresses above folder prefixes, and folder prefixes above the bare domain. If the domain is replaced first, the longer paths no longer match and the result is a mix of old and new structure.
  3. Pick folders and keep a backup. Choose the top-level folder with subfolders included. Copy it first, or turn on logging so each change can be reviewed.
  4. Target both the address and the visible text. A hyperlink stores its address apart from the words on the page. Many documents also print the URL in full, so add pairs for that text.
  5. Include every part of the file. Tick body text, headers, footers and text boxes. Footers often carry a support or policy URL on every page.
  6. Trial run, then verify. Process about thirty representative files, open several, click some links, and read the log before running the whole set.

URL pattern cheat sheet

SituationSearchReplace
Scheme and host changehttp://www.oldsite.edu/https://www.newsite.edu/
Folder renamed/students/forms//current-students/forms/
Page renamed/library/ezproxy.html/library/off-campus-access
Query string page/help.aspx?topic=vpn/help/vpn

Query strings need their own rows. A replacement for /help.aspx does not rewrite the part after the question mark, so list each full address that has a new slug.

Original Example: Fenwick University Moves from oldsite.edu to newsite.edu

Fenwick University moved its public site to a new domain and content system over one weekend. Its IT department then found that the shared document library held 9,300 Word files, among them student handbooks, course outlines, staff procedures and IT guides. A link-checker scan of a 400-file sample found that 71 percent contained at least one address that now returned an error. Fixing them by hand was estimated at 220 hours.

The web team exported the redirect rules into a list of 138 pairs. Typical entries looked like this:

  • "http://www.oldsite.edu/students/forms/leave.pdf" became "https://www.newsite.edu/current-students/forms/leave-of-absence"
  • "http://www.oldsite.edu/library/ezproxy.html" became "https://www.newsite.edu/library/off-campus-access"
  • "http://www.oldsite.edu/" became "https://www.newsite.edu/" (listed last, as a catch-all)

Before, a handbook footer read: Forms and policies: http://www.oldsite.edu/students/forms/ with the same address behind the link. After the run, both the text and the stored address read https://www.newsite.edu/current-students/forms/. The team selected body text, headers, footers and text boxes, and ran a thirty-file trial on a copy of the library. The trial showed that a few course outlines printed addresses with a trailing space inside the link, so two extra pairs were added. The full run covered 9,300 files in about three hours and logged 24,600 replaced addresses. A follow-up crawl of 500 random links found 6 that still failed, all pointing at pages deleted without a redirect. Total effort dropped from 220 hours to roughly 14, including testing and review.

Common Pitfalls

  • Catch-all first. Replacing the bare domain before specific paths destroys the information needed to map each page. Always list the catch-all last.
  • Text and address mismatch. Updating only the stored address leaves the old URL printed on the page, which confuses readers and printouts.
  • Case and trailing slashes. Servers may treat /Forms and /forms/ alike, but a text match does not. Check how links were actually written before settling on pairs.
  • Encoded characters. Spaces stored as %20 or ampersands stored as & will not match a plain-text search. Add a pair for each stored form.
  • Pages with no new home. A pair cannot repair a link to deleted content. Collect these from the log and decide on a landing page or a server redirect.
  • Skipping verification. A clean log shows replacements were made, not that the new address works. Run a link checker on a sample afterward.

FAQ

Can WordPipe find which links are broken before I replace them?

No. WordPipe replaces the addresses you give it. Use a link checker or your migration redirect list to identify dead URLs, then enter them as pairs.

Does the visible link text change as well as the address?

Only if you target both. A hyperlink stores an address separately from the text readers see, so add pairs for URLs that are printed in the text too.

Can I fix links in headers, footers and text boxes?

Yes. You choose which parts of each document to process, so these areas can be repaired in the same run.

What if the new URL structure does not map one to one?

Replace the pages that have a clear new home and list the rest from the log. Those files can be pointed at a landing page or handled by a redirect on the web server.

Related Use Cases

Start Using WordPipe Today

Download WordPipe Free Trial

Buy WordPipe Now