How to Find and Fix Orphaned Pages on Your Website

A C# tutorial can return a successful HTTP response, appear in your XML sitemap, and still be impossible to reach from your blog’s home page. If no other page on the site links to it, it’s an orphaned page. A reader with the direct address can open it, and a search engine might discover it through the sitemap or a link from another site. Neither gives someone already browsing your blog a route to the tutorial.

Start by defining what counts as an orphan

A true orphan has no incoming internal links from other pages. A page that has an incoming link but can’t be reached from any of your crawl starting points is slightly different. Suppose two old XNA tutorials link to each other, but nothing in your current site links to either one. Neither is strictly an orphan, yet both belong to a disconnected section. A crawl from the home page misses both cases, and both can matter to readers.

Decide which pages belong in the audit before you collect URLs. For a programming blog, that might mean published tutorials, series indexes, and documentation on the main hostname. Leave drafts, previews, and private account screens out of a public-content audit. Keep deliberately unlisted pages in a separate group so you don’t accidentally add a campaign page or a limited-distribution resource to public navigation. An unlisted URL is not a substitute for access control.

1. Build an inventory independent of your crawl

A crawler follows links, so it can’t tell you about a page it never encounters. Give yourself a separate list of URLs that exist or have existed. Start with your content management system (CMS) export or, for a static site, the routes generated by the build. Then add other sources to catch omissions:

  • XML sitemaps: Include the individual sitemap files if you use a sitemap index. A sitemap can contain stale entries and omit published pages, so don’t treat it as a definitive inventory.
  • Analytics or search performance reports: Export page URLs from a period long enough to capture infrequently visited tutorials. These reports can surface old landing pages, but won’t show every URL.
  • Server logs or a pre-migration URL list: If available, use these to find addresses left over from a redesign. Treat each address as a lead, not proof that a page still exists.

Put the URLs in a spreadsheet, recording where each one came from. Keep the original address and a separate comparison column. Remove fragments such as #examples, which point to sections of the same document, and strip known tracking parameters. Don’t indiscriminately remove query strings, lowercase paths, or merge trailing-slash variants: some sites serve different content at those addresses. Check what the server actually does before treating two URLs as equivalent.

URL inventory open on a laptop

2. Crawl the paths a reader can actually follow

Run a link-following crawl from the home page. If you’ve defined a documentation section with its own entry point, record whether you seed the crawl there too. When your goal is to test whether readers can reach that section from the home page, don’t seed it separately: doing so would hide the very gap you’re measuring.

Turn off sitemap discovery and URL-list imports for this pass. If you feed the crawler every published URL, a report can show that it fetched a tutorial without showing whether it found a link to it. Export the discovered URLs and, if your tool supports it, the links it followed, with a source and destination for each.

Check the crawl settings before trusting the export. A depth or page limit can cut off an archive, and a crawler that doesn’t render JavaScript may miss links inserted by a client-rendered navigation component. If a candidate appears linked in your browser, inspect the rendered page and check whether the link has an actual href. A button that navigates only when a script handles a click is different from a link a crawler can extract. Also check whether the crawl stopped early or excluded routes that you meant to audit.

3. Compare the lists and inspect the leftovers

Compare the inventory with the crawl export using the same URL cleanup rules on both. In a spreadsheet, a lookup or COUNTIF can flag inventory entries with no match in the crawl. That difference is your candidate list, not your list of confirmed orphans. Start with pages that are current, receive traffic, or provide a prerequisite for another tutorial.

Check each candidate’s HTTP status and final destination. A permanent redirect from an old route isn’t a live orphaned tutorial; check whether the destination has internal links, and remove the old redirecting address from the sitemap if it’s listed there. A missing page belongs in a separate review. Even a URL returning 200 OK needs a quick visual check: some sites show a “not found” screen while still returning a success status.

For a live page, inspect any canonical declaration to see whether it identifies another URL as the preferred version. If the two pages are duplicates, determine which one should be kept before adding links. If the candidate is a distinct, useful page but declares the wrong canonical, investigate the template or page settings rather than assuming an internal link alone will solve the problem.

Finally, look for incoming links outside the home-page crawl. A CMS link report, a search through your source files, or a separate crawl seeded with the published URL inventory can reveal links from other disconnected pages. If the seeded crawl finds that two tutorials link to each other, that’s evidence of a disconnected group, not evidence that readers can reach it. Record the likely cause and proposed action beside each URL.

4. Give each page the right fix

Before changing content, templates, navigation, or redirects, make a backup. For a static site, save the current source and redirect configuration in version control. For a CMS, back up the database and any files or configuration affected by the change, and confirm you know how to restore them. A shared template edit can alter far more pages than the one you’re trying to fix.

  • Give a useful page a reachable parent. Link to it from a series index, a relevant category page, or a tutorial where it’s a natural prerequisite or next step. Make sure the source page itself is reachable. For help choosing between a link in the body and one in a series index, consider where internal links fit in a coding tutorial.
  • Reconnect a disconnected group at its entry point. If an entire C# series disappeared after a navigation redesign, restore a link to its series index first. Then check that the index links to each intended installment. There’s no need to put every lesson in the main menu.
  • Merge pages that teach the same thing. Move any useful material to the version you plan to keep. If it genuinely replaces the old page, set a permanent redirect from the old address and point internal links directly to the replacement.
  • Retire pages without a suitable replacement. If a page should no longer exist, remove it from the sitemap and let the URL return a real 404 or 410, as appropriate. Don’t redirect a removed XNA setup guide to the home page just to avoid a missing-page response.
  • Leave deliberately unlisted pages unlisted. Document why they’re excluded so they don’t get relinked during the next audit. If a public page should stay out of search results, handle indexing separately; the absence of internal links does not guarantee exclusion.

5. Verify the fix without feeding the crawler the answer

After deployment, repeat the link-following crawl with the original starting points and settings. For each page you meant to reconnect, confirm the report names a reachable source page and shows a link to the intended destination. Open that source in a browser and follow the link yourself. This catches mistakes such as a published index pointing to a staging address or a series link appearing only for signed-in editors.

For retired or merged pages, check the old URL’s response and confirm that the sitemap no longer lists it. If you added a redirect, follow it to verify that it ends at the intended live page without an unnecessary chain. Don’t use an immediate change in search traffic as your test: you can verify the site’s links now, while search engines may take longer to process the changes.

Make reachability a publishing check

Add a field called “Incoming link from” to your tutorial checklist. For a new lesson on cancellation in C#, enter the async series index and check that it points to the published lesson. If the index isn’t public yet, mark the lesson as intentionally unlisted until the series launches. On launch day, test the full route from the blog’s home page to the index and then to the lesson without using its direct address.