Internal linking: find orphan pages and fix weak links

How Google uses internal links, how to find orphan and weakly linked pages, write good anchor text, link new posts to old ones and fix broken links.

BeforeQuery Team12 min read

You publish a post, it sits at the top of the blog index for a few weeks, then it slides onto page 4 of the archive. Nothing else on your site links to it, so readers stop finding it and crawlers reach it only through a chain of archive pages.

This guide covers what Google says internal links do, how to find weakly linked pages, how to write and place links, how to keep them working, and a monthly checklist. For crawl and index checks across the whole site, use our technical SEO audit checklist.

Google's link best practices open with the two jobs links do: "Google uses links as a signal when determining the relevancy of pages and to find new pages to crawl."

Google's guide to how Search works says some pages are found when Google "extracts a link from a known page to a new page: for example, a hub page, such as a category page, links to a new blog post." Its SEO starter guide is blunter: "Google primarily finds pages through links from other pages it already crawled." A sitemap helps, but "If your site's pages are properly linked, Google can usually discover most of your site."

Links also tell Google which pages matter. In its ecommerce site structure guide, Google says it can use "the number of links it needs to follow to reach a page and the number of links to a page to infer the relative importance of a page over the rest of your site." It's written for shops, but the point isn't limited to products.

Keep this in proportion. The starter guide says PageRank "uses links and is one of the fundamental algorithms at Google", and that "there's much more to Google Search than just links." Internal links won't rescue a weak page. They make sure Google can find your good pages and tell which ones you care about.

Find orphan and weakly linked pages

SEOs call a page that no other page on the site links to an orphan page. Google may still know it from your sitemap, but readers can't reach it. A weakly linked page has links, but only from the blog index or a deep archive page.

  1. List the pages you want found. In Google Sheets, this pulls every URL from your sitemap into column A. If it's a sitemap index, run it on each sitemap it lists.

    =IMPORTXML("https://www.example.com/sitemap.xml", "//*[local-name()='loc']")
    
  2. List the pages your links reach. Run an SEO crawler from your homepage and paste the URLs it finds into column B. Many crawlers also report each page's internal link count and clicks from the homepage.

  3. Match the forms. Both columns must use the same https, www and trailing-slash form, or every page looks orphaned.

  4. Find the gaps. This lists sitemap URLs your links never reach, your orphan pages:

    =FILTER(A2:A, A2:A<>"", ISNA(MATCH(A2:A, B2:B, 0)))
    
  5. Sort by depth and by links. In the crawler export, sort by clicks from the homepage (deepest first), then by internal links (fewest first), the two measures Google's site structure guide names. A key page near the top of either list is weakly linked.

For each orphan, link to it from related pages, merge it into a better page, or drop it from the sitemap.

Open Links. Under Internal links, the Top linked pages table (as Google's help named it when we checked) lists your pages by how often your other pages link to them. Click More for the full list, then click a URL to see which pages link to it.

Google suggests using it to "Confirm that the core site pages (home page, contact page) are properly linked within your site." Look for your pricing page, product pages and best guides. If one sits far down the list or is missing, it needs more links.

Mind the limits: Google says the report "isn't a comprehensive list of every link on your site" but a sample, and tables stop at 1,000 rows. A missing page is a reason to check, not proof of an orphan.

Write anchor text people and Google understand

Anchor text is the clickable words of a link. Google's rule: "Good anchor text is descriptive, reasonably concise, and relevant to the page that it's on and to the page it links to."

Its examples of failures are generic text such as "Click here" and "Read more", text that is "weirdly long", and text stuffed with keywords. Its test for the last one: "does the reader need these keywords to understand the next page?"

Weak anchor textBetterProblem
Click here, Read morelate payment reminder templatesSays nothing about the page
invoicing software UK best invoice app free invoicing toolAcme's invoicing softwareKeyword stuffing
Acme now lets you send invoices in other currencies and take card payments on each onesend invoices in other currenciesToo long to tell what the page is
An image link with alt=""alt="Acme pricing plans"Google uses an image link's alt text as its anchor text
<!-- Weak: the reader can't tell where this goes -->
<p>We covered reminders before. <a href="/blog/late-payment-reminders/">Click here</a>.</p>

<!-- Better: the link names the page, and the sentence says why to click -->
<p>If a client is two weeks late, send one of our
<a href="/blog/late-payment-reminders/">late payment reminder templates</a>.</p>

Google adds that "the words before and after links matter", and says "Don't chain up links next to each other": five links in a row, one per word, leave no context for any of them.

Google says "navigation structures on your site (such as menus and cross page links) can impact Google's understanding of your site structure." Each place does a different job.

WhereGood forWatch out for
Main menuProduct, pricing, blog, contactOn every page, so it says little about any one topic
FooterCompany, legal and help pagesLong blocks of keyword links
Body of a pageRelated topics, with a sentence of contextLinks that don't help the reader at that point
Related posts blockSurfacing older postsBlocks that load only after a click

Menu links keep core pages one click from everywhere. Body links carry the context, and Google's advice is to "link to those pages in context." Google's guidance doesn't say how it weighs one against the other, so use each for what it's good at.

Keep footers short. Google's spam policies count "Blocks of text that list cities and regions that a web page is trying to rank for" as keyword stuffing, and a footer listing every city you serve fits.

Linking a new post to older ones happens while you write. The reverse means editing pages you think of as finished, so it's easy to skip, and then the new post sinks with every post after it.

When you publish:

  1. Link out from the new post to the pages a reader would want next: the feature it mentions, a deeper guide, its hub page.
  2. Find older pages on the same topic. Search Google for site:example.com "late payment" with your own domain and topic, or filter Search Console's Performance report by a related query and open the Pages tab. Our guide to searches you nearly win explains those filters.
  3. Add a link from several of them, each in a sentence where the new post helps, not in a list at the bottom.
  4. Add the post to its hub page.

When you refresh an old post, link to newer posts that cover what has changed.

Build hub pages for your main topics

A hub page introduces one subject and links to every page you have on it, each with a line on what it covers. It is Google's own example of discovery, quoted above. A date-ordered category archive does the job poorly, because older posts end up several pages deep.

A hub for Acme's invoicing topic might have a short introduction, links grouped by task (getting started, chasing late payments, tax rules) with a sentence on each, and a link to the matching product page. Every post in the group links back to the hub.

For paginated archives, Google advises: "include links from each page to the following page using <a href> tags", with a unique URL per page. It also says its crawlers don't "click" buttons, so a "Load more" button alone can leave older posts unreachable.

Don't wall topics off. Asked in 2008 about "theming" internal links, Google said it hadn't "found a case where a webmaster would benefit by intentionally" doing so. Link across topics wherever it helps a reader.

Google can generally only crawl a link that's an <a> element with an href attribute. It "can't reliably extract URLs from <a> elements that don't have an href attribute or other tags that perform as links because of script events."

<!-- Google can follow these -->
<a href="/features/recurring-invoices/">recurring invoices</a>
<a href="https://www.example.com/pricing/">Acme pricing</a>

<!-- Google can't reliably follow these -->
<span onclick="location.href='/pricing/'">Pricing</span>
<a onclick="goTo('/pricing/')">Pricing</a>
<a href="javascript:goTo('pricing')">Pricing</a>
<a href="#/pricing">Pricing</a>
<button onclick="loadMorePosts()">Load more</button>

Where these hide:

  • Menus built with JavaScript. Google says: "Don't use JavaScript events on other HTML DOM elements for navigation." Right-click a menu item, choose Inspect and check that it's an <a href>.
  • Hash URLs. Google's JavaScript guide says "don't use fragments to load different page content." Use real paths such as /pricing/.
  • Pages reachable only through site search. Google says "Googlebot generally doesn't try to submit searches into a search box as part of crawling a site."
  • Links added by JavaScript. Google says to use the URL Inspection Tool "to make sure it's present in the rendered HTML": click Test live URL, then View tested page.

rel="nofollow" is for links you don't vouch for, such as paid links and user comments. Google says: "For regular links that you expect Google to fetch and parse without any qualifications, you don't need to add a rel attribute."

You wantUse
The page crawled and indexedA plain <a href> link with no rel
A section not crawled, such as sorted or filtered listsA robots.txt disallow rule
A page kept out of search resultsnoindex on a page Google is allowed to crawl

For your own pages Google says: "If you need to prevent Google from fetching a link to a page on your own site, use the robots.txt disallow rule." Nofollow can't hide a page anyway: Google said it would become a hint for crawling and indexing from 1 March 2020. Search your templates for rel="nofollow" and remove it from links to your own pages.

  1. Find them. In Search Console's Page indexing report, look for Not found (404). Google says it "might have discovered the URL as a link from another page". Your crawler's broken link export lists the pages that link to each missing URL, and URL Inspection shows a Referring page for a single URL.
  2. Fix the link itself. Point it at the right live page. If the page moved, Google says "use a 301 redirect to the new location." If it's gone with no replacement, a 404 is expected: "404 responses are not necessarily a problem, if the page has been removed without any replacement." Then remove the links to it.

Redirect chains

A page that moved twice can send its old links through two redirects. Google's site move guide advises "redirecting to the final destination directly", and its crawl budget guide, written for very large sites, says: "Avoid long redirect chains, which have a negative effect on crawling." Chains that are too long or loop appear in the Page indexing report as Redirect error.

To check a link:

curl -sIL https://www.example.com/blog/invoice-tips/ | grep -iE "^(HTTP|location)"
HTTP/2 301
location: https://www.example.com/blog/invoice-tips
HTTP/2 301
location: https://www.example.com/blog/invoicing-tips-small-business/
HTTP/2 200

Two redirects before the page loads. Change every internal link to the final URL, and point the old redirect straight at it. The technical SEO audit checklist covers redirect types and status codes.

A monthly internal linking routine

Once a month, work through this list.

INTERNAL LINKS: MONTHLY CHECK

New content
[ ] Each new page links to related older pages, in context
[ ] Several related older pages now link to each new page
[ ] Each new post is listed on its hub page

Coverage
[ ] Sitemap compared with a crawl: orphan pages linked, merged or removed
[ ] Deepest and least-linked key pages given new links
[ ] Pricing, product and top guides checked in Links > Internal links > Top linked pages

Errors
[ ] Page indexing report: Not found (404) and Redirect error reviewed
[ ] Broken internal links pointed at live pages
[ ] Internal links that hit a redirect updated to the final URL

Quality
[ ] No "click here" or "read more" anchors added
[ ] No rel="nofollow" on links to your own pages
[ ] New menus, widgets and "Load more" buttons use <a href> links

After a redesign, a CMS switch or a change to your URLs, run the whole list straight away.

How the BeforeQuery AI Marketer helps

Everything above is free to do by hand, and the BeforeQuery AI Marketer doesn't audit your internal links. Its SEO Agent audits your homepage once at sign-up on the free plan; on paid plans it audits every day and writes 2 fixes a day, each with steps and a copy-ready snippet. It covers the homepage only, so site-wide links and redirects are still yours.

The Writer Agent drafts an SEO article a day from your own website and documents, with a title, URL slug, meta description and a link to a relevant page on your site. You can edit every draft before it goes out, the moment to add links to older posts and the hub page. It publishes to WordPress, Webflow, Framer, Wix, Sanity or HubSpot only when you approve, now or at a time you pick.

If you connect Google Search Console, the Traffic tab lists your top 10 searches and top 10 pages for the last 28 days. The Coding Agent opens a GitHub pull request with fixes such as titles, meta descriptions, canonical tags, alt text, robots.txt and sitemaps. It never merges; you review and merge.

You can sign up free and enter your website to start.

Frequently asked questions

Google's link guidance doesn't set a number. It says every page you care about should have a link from at least one other page on your site, and warns against chaining links next to each other. Add a link wherever a reader would want to go next, and stop there.

Google crawls <a href> links wherever they sit, and says menus and cross page links can affect how it understands your site's structure. Its guidance doesn't say how it weighs a menu link against a body link.

Google doesn't ask for identical text. It asks for anchor text that is descriptive, reasonably concise and natural, without crammed-in keywords. Wording that fits each sentence is fine if it describes the target page.

Asked in 2008 about using nofollow to steer PageRank around a site, Google said: "It's not something we, as webmasters who also work at Google, would really spend time or energy on." Its current documentation says regular links need no rel attribute.

Sources

Put your marketing to work

Enter your website and your AI Marketer starts with a read of your site, an SEO audit and a strategy. Free to start.