ARTICLE - SEO Optimization

Internal Linking Strategy: Optimizing Site Structure and Passing Authority

External links must be earned; internal links can be designed. Treat the site as a directed graph, locate problems with three metrics you can compute yourself (depth, inbound link count, anchor text spread), then apply cluster structure and anchor text discipline.

2026-08-06 Ahrefs

Internal Linking Strategy: Optimizing Site Structure and Passing Authority

External links wait for someone to grant them. Internal links only need you. That is what makes internal linking unusual in SEO: it is the one lever you fully control and can allocate by design. You decide which page gets linked ten times and which gets none, and you decide what the words around those links say, which is how you tell an engine what the target page is about.

Following the summary in Ahrefs' internal linking guide, internal links do three jobs: discovery, authority distribution, and semantics. What unites them is that all three can be engineered. Each can be measured, changed, and verified afterwards. This article follows that thread: read the site as a directed graph first, then cover structure, anchor text, placement, traps, and finally a measurement method you can actually run.

1. External links must be earned, internal links can be designed

1.1 What problem each of the three jobs solves

Discovery answers whether a crawler can walk to this page at all. A page with no inbound links and no sitemap entry effectively does not exist in the site's link structure. The symptom is direct: a newly published page never shows up in crawl records. Crawl-level measurement is covered in crawl budget management.

Authority distribution answers whether the internal importance order matches your commercial goals. Internal authority is a roughly fixed pool, and links decide where it flows from and to. You cannot enlarge the pool, that takes external links and overall authority, but you can change how it is divided.

Semantics answers how the engine understands the target page's topic. Anchor text is the one place on-site where you supply a topic label directly, and you write all of it. Together with the page's own title and body, it forms the input an engine uses to judge what a URL is about.

1.2 Why it deserves investment before external links

The cost of external links is uncertain: content has to be good enough, the other party has to agree, timelines run in months, and you cannot precisely control the anchor text or the landing page. The cost of an internal link is one hour of certain work, with full control over destination, wording, and placement.

That difference sets the order of work: fix the internal structure first, then pursue external links. Not because internal links matter more, but because their marginal cost is close to zero while their failure modes, orphan pages, broken links, and meaningless anchor text, are extremely common. If the structure is wrong, authority from external links leaks out through the same bad structure.

2. Reading the site as a directed graph: three metrics

2.1 Depth: clicks from the homepage

Depth is the most intuitive structural metric: the shortest path from the homepage along internal links. Its meaning is discovery efficiency, since shallower pages are revisited more often by crawlers and found more easily by users.

Three observable checks you can compute yourself: are core pages within three hops; is depth consistent within a topic (spread indicates a muddled structure); and is depth for new pages growing over time (growth means structural decay, usually because new content is pushed into ever deeper categories). Improving depth means flattening levels and adding lateral links; architectural design is covered in site information architecture.

2.2 Inbound links: how many pages point here

Inbound link count is a rough proxy for internal authority: the more pages that point at a URL, and the more inbound links those pages themselves have, the more internal authority it accumulates. No tool is required, since one full crawl exports the inbound source list for every URL.

The absolute number is not the point. The distribution is. On a healthy site, inbound links correlate with commercial value: product pages, core service pages, and pillar pages should collect most of them. The next few chapters show how to verify that.

2.3 Anchor spread: how many wordings point here

This is the most overlooked metric, because it requires aggregating the anchor text of every link pointing at one page. A healthy spread is mostly descriptive variants consistent with the target's topic, sprinkled with a few brand terms and navigational phrases such as "learn more" or "view details".

Three abnormal shapes exist: every link uses the same exact keyword, which signals over-optimization; a majority of links have no descriptive text, wasting the semantic signal; and anchor text that does not match the target page, common after a rebuild reuses URLs for new content.

3. Topic cluster structure

3.1 Linking rules between pillar and spoke pages

A topic cluster is simple in shape: one pillar page covers the topic broadly, and several spoke pages go deep on sub-questions. There are only three linking rules, and all three must be enforced.

First, every spoke links back to the pillar, which concentrates both authority and semantics at the topic entry point. Second, the pillar links to every spoke, making the pillar the routing table for that topic. Third, spokes link to each other by relevance rather than exhaustively; interlinking is valuable because of semantic proximity, and indiscriminate interlinking only dilutes authority.

Keep a cluster within a manageable size. With too many spokes, the pillar's link list turns into yet another directory page and loses its semantic focus.

3.2 Why not a strict silo

A strict silo requires full isolation between topics, allowing only vertical links. The intent is to keep each topic's authority from being scattered, but the cost is severing semantic connections between topics, while real user needs frequently cross them: someone choosing a CDN also has to think about origin architecture, and someone working on caching also has to think about cost.

The mainstream approach now is clusters first, with a small number of editorial cross-cluster links: the main structure follows clusters, and cross-cluster links are decided by content relevance rather than forbidden by structure. The test is simple. Is this cross-cluster link useful to the reader? If yes, add it. If not, leave it out.

4. Anchor text discipline

4.1 Descriptive, varied, consistent with the target

Each of the three requirements addresses a specific problem.

Descriptive: the anchor text should tell a reader what they will see before they click. "Click here" and "learn more" carry no information and waste a position that could pass meaning.

Varied: the same target page should be described differently in different contexts, following the sentence naturally. This is not merely about looking organic; different phrasings cover different facets of the same topic.

Consistent with the target: the anchor promises content the target must actually deliver. Writing "cache invalidation strategy" and linking to a page that only covers caching is the most damaging kind of misdirection for users.

4.2 Why one uniform anchor site-wide backfires

This is the most counterintuitive point about internal linking. Many teams assume that fixing one keyword and repeating it strengthens a signal, when in practice it looks more like a template artifact: the same exact keyword, in the same position, pointing at the same page, thousands of times.

The real criterion is not whether repetition exists but whether repetition comes with editorial intent. Using the same word twice in one paragraph for readability and a site-wide footer list using that word are entirely different things to a machine. The latter is mechanical and independent of context. The discipline should therefore be: anchor text grows out of the surrounding sentence, it is never looked up in a fixed mapping table.

5. Five placements that work

Placement (as described in the article) What it solves How to use it Boundary or risk
Contextual links in the body The only placement serving discovery, authority and semantics at once Decide the topic first, find upstream or downstream pages, introduce them naturally One contextual link in prose beats five sidebar links
Breadcrumbs Hierarchy and backtracking, telling users and crawlers which level a page sits on Must match the structured data on the page Two contradictory hierarchy declarations get read together
Related content modules Lateral connection that keeps supplying inbound links to older pages Hand-pick three genuinely relevant pages rather than matching tags mechanically Avoids the "spike at launch, silence afterwards" pattern
Listing and directory pages Natural hubs linking out to every item in a category Stable entries, shallow pagination, sorting that spawns no parameter variants Too many parameter variants break the hub role
Empty site search results page Captures a demand that really exists and adds editorial internal links Recommend relevant topic entries on that page Those links naturally carry the search phrase as context

5.1 Contextual links in the body

The highest-value placement and the one that needs the most judgment. It carries context as well as authority, because the surrounding sentence itself describes the target. It is also the only placement that serves discovery, authority, and semantics at once.

In practice: when writing something new, decide what it is about, then find which existing pages are its upstream or downstream neighbors, and introduce them naturally in the body. One contextual link in prose is worth more than five sidebar links.

5.2 Breadcrumbs and related content modules

Breadcrumbs handle hierarchy and backtracking, telling both users and crawlers which level a page sits on. One consistency requirement is easy to miss: breadcrumbs must match the structured data on the page, otherwise the engine sees two contradictory hierarchy declarations, see structured data implementation.

Related content modules handle lateral connection, tying older and newer pages on the same topic together. Their value is giving old content a continuing supply of inbound links instead of the "spike at launch, silence afterwards" pattern. Quality depends on the selection logic, and mechanical tag matching is usually worse than hand-picking three genuinely relevant pages.

5.3 Listing pages and empty site search results

Listing and directory pages are natural hubs because they link out to every item in a category. For them to work as hubs, entries must be stable, pagination must stay shallow, and sorting must not spawn large numbers of parameter variants.

The empty site search results page is a routinely wasted placement. A user searched for something the site does not have, which proves a real demand exists. Recommending relevant topic entries there improves the experience and adds a few editorial internal links, and those links naturally carry the search phrase as context.

6. Traps

6.1 Site-wide footer links

The problem with footer links is not that they are harmful but that they are inefficient with side effects. They repeat on every page, so each page hands part of its authority to the same fixed set of targets, and they are not editorial: they live in a template and never change with content, which machines detect easily.

The right use is navigation rather than authority allocation. Put only the few entries that genuinely need global reach, such as about, terms, and main categories, and do not stack keyword links in there.

6.2 Script-injected links and orphan pages

Injecting internal links with JavaScript is common in architectures with a separated front end. The risk is on the discovery path: if the link only exists in the DOM after client-side rendering, it is absent from the original HTML, and whether a crawler sees it depends on render execution. The robust approach emits key internal links in server-rendered HTML; the relationship between rendering and crawling is covered in the technical SEO checklist.

Orphan pages have content but no inbound links. They usually result from history: removed from navigation during a redesign, unlinked after a content migration, or simply forgotten after a campaign page shipped. The cost is double, since the page gets no authority and is barely discoverable. The next chapter covers how to find them.

7. Measurement: does inbound distribution match commercial value

The most useful table puts inbound link count and conversion value in the same two-dimensional list. List the twenty pages with the most inbound links and the twenty pages with the highest commercial value, then check the overlap.

High overlap means the structure is healthy. Low overlap surfaces the problem immediately, usually in one of two shapes.

  • Authority piled on non-commercial pages: the homepage, blog archives, tag pages, and help center absorb most inbound links while the product and service pages that drive conversion have very few. The cause is usually that the former are numerous and easy to interlink, while commercial pages are few and nobody links to them proactively.
  • Commercial pages stranded as islands: each product page has exactly one inbound link from a listing page and no lateral links at all. The fix is meaningful connections such as related products or companion solutions, not a random recommendation module.

Measurement needs a fixed cadence. A quarterly run alongside the complete SEO audit process works: crawl the site to export inbound data, find orphan pages and broken links, check anchor spread, then read the direction of indexation and traffic with the criteria in the website indexation guide. On the tool side, platforms such as Ahrefs report inbound distribution and anchor aggregation directly, while Screaming Frog is better suited to full-site exports and before-and-after comparison.

One final criterion: success in internal linking is not measured by how many links were added but by whether authority distribution matches commercial intent, important pages stay reliably discoverable, and anchor text carries context. Content quality is judged by a separate standard, see E-E-A-T content quality, and the interplay with duplicates and canonicals is in canonical and duplicate content handling.

Source: Ahrefs blog, "Internal Links for SEO", with reference to Google Search Central documentation on internal links. Organized and interpreted by 16IDC.

Integration & Code Examples

Example 1: Crawl internal links and count inbound links per page

import re, urllib.parse, urllib.request
from collections import defaultdict
START = "https://www.example.com/"
HOST = urllib.parse.urlparse(START).netloc
HREF = re.compile(r'<a\s[^>]*href=["\']([^"\']+)', re.I)
seen, queue, inbound = set(), [START], defaultdict(set)

while queue and len(seen) < 500:
    url = queue.pop(0)
    seen.add(url)
    try:
        html = urllib.request.urlopen(url, timeout=20).read().decode("utf-8", "ignore")
    except Exception:
        continue
    for href in HREF.findall(html):
        link = urllib.parse.urljoin(url, href).split("#")[0]
        if urllib.parse.urlparse(link).netloc == HOST and link not in seen:
            inbound[link].add(url)
            queue.append(link)

orphans = [u for u in seen if not inbound.get(u)]
print("crawled:", len(seen), "orphans:", len(orphans))
for u in orphans[:10]:
    print("  [orphan]", u)

Pages with zero inbound links get neither authority nor re-crawls, so fixing orphans beats publishing more.

Example 2: Measure anchor text distribution and generic labels

import re, urllib.parse, urllib.request
from collections import Counter

URL = "https://www.example.com/pricing"
ANCHOR = re.compile(r'<a\s[^>]*href=["\']([^"\']+)["\'][^>]*>(.*?)</a>', re.I | re.S)
TAG = re.compile(r"<[^>]+>")

html = urllib.request.urlopen(URL, timeout=20).read().decode("utf-8", "ignore")
counter = Counter()
for href, inner in ANCHOR.findall(html):
    target = urllib.parse.urljoin(URL, href)
    text = TAG.sub("", inner).strip()
    if not text:
        continue  # image-only links carry no anchor text
    counter[(target, text)] += 1

for (target, text), n in counter.most_common(15):
    print(f"{n:3d}  {text[:40]:40s} -> {target}")

generic = sum(n for (_, t), n in counter.items() if t.lower() in {"click here", "learn more", "here", "read more"})
print("generic anchors:", generic)

The generic-anchor ratio is the bluntest internal-link quality metric; above roughly three in ten, rewrite them by topic.

Limitations

  • There are only three linking rules, and all three must be enforced.
  • Put only the few entries that genuinely need global reach, such as about, terms, and main categories, and do not stack keyword links in there.
  • Figures reflect public information at publication; terms, prices and quotas follow the provider's current published terms.

FAQ

Which metrics measure internal linking quality?

Depth, inbound link counts and anchor-text distribution: 3 metrics in total. Core pages should sit within 3 clicks of the home page; inbound counts matter as a distribution that tracks commercial value; anchors should read as descriptive variants rather than one repeated exact keyword, and stray anchors mislead crawlers.

Why is a footer stuffed with keyword links a bad idea?

Because it spreads each page's authority across the same targets. A footer repeats on every page and never changes with content, which is easy to identify as non-editorial. Keep it to the 3 global entry types: about, terms and main categories. Keyword stacks in the template do neither.

How often should internal linking be reviewed?

Per publish for the new page, quarterly for the whole site. When a page ships, confirm it has at least 1 inbound link and sits within 3 clicks; in the quarterly pass, watch whether new pages get deeper over time, a sign that content is filed into ever-nested categories.

Related Providers

  • Ahrefs: when internal link distribution and anchor detail must be listed page by page.
  • Screaming Frog: when a full crawl must export inlink and outlink counts per URL for the graph.
  • Semrush: when site audit findings must line up with keyword and ranking data in one report.

Community & Resources

Learning resources and tools

Original source: Ahrefs ↗