RankDossier
Guide

Internal linking SEO: how to connect the pages of your site

Internal links are links from one page of a site to another page of the same site. Internal linking SEO is the practice of placing them so that search engines and visitors can find every important page and see how the pages relate. Good internal links come from relevant pages, use descriptive text and point straight to the final address that can be indexed. This guide covers structure, click depth, anchor text, orphan pages and how to check all of it.

Internal links · Author: The RankDossier team · Updated:

Check your own site Start the free pre-check

Internal links do three jobs: they let crawlers discover pages, they show which pages the site considers important, and they lead visitors to the next useful step.

Unlike links from other sites, internal links are fully under your control, so they are one of the fastest things you can improve. Weak internal linking can also be one reason why Google discovers pages but does not crawl them – see why Google does not index some pages.

To find pages without links on a large site you need a crawler; the comparison of desktop and cloud crawlers helps you choose one.

  • Discovery: a crawler follows <a href> links; a page without them can be found only through the sitemap or links from other sites.
  • Context: the link text and the sentence around it tell search engines what the target page is about.
  • Priority: a page that many relevant pages link to looks more important than a page linked from one corner of the site.

Site structure and click depth

Click depth is the number of clicks from the home page to a page along the shortest path of links. Keep important pages within 4 clicks of the home page: the audit marks pages more than 4 clicks deep (DEEP_PAGE). There is no official click limit, so 4 is our own rule of thumb, and it gives you a fixed number to check, because pages far from the home page are discovered and crawled again less often. Reach the rest through categories, hubs and links in the text.

The example below is illustrative: a small service site and the depth of its pages.

DepthLinked from
Home page0–
Services category1The main menu and the home page
Service page2The category page and related services
Article about the service3The blog category and the service page
Old article without linksnot reachableNo page of the site – an orphan page

Hubs and topic clusters

A hub page that covers a topic and links to all its detailed pages – and is linked back from them – gives crawlers and readers a clear map. The SEO guides on this site follow that pattern: a hub groups them by topic, and each guide links to related guides.

What the audit measures

RankDossier counts the depth of every crawled page from the home page and reports pages more than 4 clicks deep (DEEP_PAGE), together with the deepest level it found.

Anchor text: describe the target

Anchor text is the visible, clickable text of a link, and it should tell the reader and the search engine what they will find on the target page. Google recommends anchor text that is descriptive and relevant to both pages. Read the anchor on its own and check that it still makes sense.

  • Vary the anchors naturally instead of repeating one exact keyword on every link.
  • Keep the link inside a sentence that explains why the target is useful.
  • Avoid empty links and image links without alt text (ANCHOR_EMPTY); the audit also reports links with texts such as “click here” (ANCHOR_GENERIC).
WeakBetter
Link to a guide“read more”“how to fix redirect chains”
Link to a service“here”“technical SEO audit for online shops”
Link to a category“products”“trail running shoes”
Link with an icon onlyno text at allan aria-label on the link or an alt text on the image

An orphan page has no internal links pointing to it. Visitors cannot reach it by browsing, and search engines find it only through the sitemap or links from other sites. Orphan pages appear after redesigns, when menus change, when old campaigns end and when a CMS publishes pages that no template links to.

The audit reports pages from the sitemap without any internal link as ORPHAN_PAGE.

  1. Compare the addresses in the sitemap with the addresses found by following the links from the home page.
  2. For each orphan page decide: link it from relevant pages, merge it with another page and redirect it, or remove it from the sitemap.
  3. Add links from related pages in the text, not only from the footer.

Our own rule, as an example

For the pages of this site we use a stricter internal rule and test it automatically. Every page in the sitemap is at most 3 clicks from the home page. It also has at least 2 incoming links in the text of other pages, not counting the menu and the footer. It is our choice, not a standard – pick numbers that fit the size of your site.

Internal links should point to the final address of a page. A link to a redirect adds an unnecessary hop, and a link to a missing page leads visitors and crawlers to a dead end. Both are common after a change of addresses, when the content moves but the links in older texts stay.

Finding and fixing them site-wide is covered step by step in the guide on broken links and redirect chains.

  • Update internal links to the final address instead of relying on redirects (LINK_TO_REDIRECT).
  • Fix or remove links to pages that return 404 or other errors (LINK_BROKEN_INTERNAL).
  • Use the canonical host and protocol in every internal link – not http:// or the other www variant (LINK_HTTP_INTERNAL, LINK_HOST_VARIANT).
  • Check links to sections of a page: the #anchor must exist on the target page (LINK_FRAGMENT_MISSING).

Do not add rel="nofollow" to links between your own pages. The attribute is a hint that you do not vouch for the target. It is meant for links to other sites, such as paid or user-generated links, and on your own pages it only makes the structure harder to read.

To keep a page out of search, use noindex on that page. To keep crawlers out of a section, use robots.txt. The audit reports internal links with nofollow as LINK_NOFOLLOW_INTERNAL.

Menus and footers link to the main sections from every page, so they keep the structure reachable, but they repeat the same links everywhere and say little about each page. Links in the text add context: they come from a related sentence and lead to a specific, related page.

A useful habit: whenever you publish a page, add links to it from two or three older, related pages, and from it to the next step for the reader.

Menu and footerLinks in the text
WhereOn every page, the same setOnly on related pages, different on each
Best forMain sections, contact, legal pagesDetailed pages: guides, products, services
ContextShort labelsA sentence that explains the target
RiskToo many links make the menu hard to useToo many links make the text hard to read

On a multilingual site, links in the text should stay in the language of the page, and the language switcher is the place to link to the other versions. A link from a German text to an English page sends the reader to a language they did not choose and mixes the signals of the language versions.

How hreflang and canonical tags work together is explained in the related guides listed at the end of this page.

  • Each language version links to its own pages, with link texts in that language.
  • The language switcher links to the same page in the other languages, in line with the hreflang annotations.
  • Menus, breadcrumbs and footers are translated, not copied from the main language.

An illustrative example, not a real site: a shop with 40 products in 4 categories adds a new guide on choosing hiking boots. A month later the guide is still not indexed. The crawl points to a likely reason: no page links to it in the text, and it is only in the sitemap and in a “Latest posts” widget that loads with JavaScript.

The fix takes three links and one changed template. The table shows what changed for the guide and for two product pages that had the same problem.

BeforeChangeAfter
Guide “How to choose hiking boots”0 links in the text, depth 5A link from the “Hiking boots” category text and from two product descriptions3 links in the text, depth 2
Product “Trail boot 2”Only in a filtered list with parametersA link from the guide with the anchor “waterproof trail boots”Reachable from the category and the guide
Product “Winter boot”Linked as “click here”Descriptive anchor “insulated winter boots”Same link, clear target
“Latest posts” widgetLinks appear only after JavaScript runsRendered as plain HTML linksLinks visible without JavaScript

Check internal links with a crawl that starts on the home page and follows the links like a search engine. It gives you the depth of each page and every link that ends in a redirect or an error. A crawl alone cannot reach pages nobody links to: to find them, compare the result with the sitemap and with the list of pages that matter most for the business.

  1. Crawl the site from the home page and export all internal links with their source, target, link text and status.
  2. List the pages without incoming links and the pages deeper than your limit.
  3. Fix links to redirects and errors in the templates first, then in the texts.
  4. Replace generic link texts with descriptive ones.
  5. For each important page, add links from two or three related pages.

What RankDossier checks

A RankDossier audit runs more than 320 checks, including the internal link checks named in this guide: orphan pages, click depth, links to redirects and errors, generic and empty link texts, internal nofollow, missing anchors and host variants. The free pre-check reads up to 10 pages with code only and shows how many types of problems it found. A paid audit crawls up to the page limit of its package and says so when the limit is reached.

Sources: Google documentation

Terms from this chapter in the glossary: Anchor text, Internal link

Questions and answers

  • There is no ideal number. Every important page should be linked from at least one other page, and a page with too many links becomes hard to use. Add a link where it helps the reader.

  • Yes, as part of how search engines discover pages and understand their topic and importance. They do not replace useful content, and no number of links guarantees a position.

  • What is an orphan page?

    A page that no other page of the site links to. Search engines can find it only through the sitemap or external links, and visitors cannot reach it by browsing.

  • Should I use exact-match keywords in anchor text?

    Use text that describes the target naturally. The same exact keyword on every link reads unnaturally; variations that fit the sentence are clearer for readers and still tell search engines what the page is about.

  • No. Footer links to the main sections, contact and legal pages are normal. They add little context, though, so important pages also need links from related texts.

  • Usually not. Opening your own pages in a new tab breaks the back button for many visitors; keep new tabs for files and some external sources.

  • Compare the addresses in your sitemap with the addresses a crawler reaches from the home page. A sitemap address that the crawl does not reach is cut off from the main structure. If no crawled page links to it, it is an orphan page, and RankDossier reports it as ORPHAN_PAGE; if other unreachable pages link to it, the whole group needs a link from the main structure.

Also read

Check your own site

Enter a domain – the free pre-check reads up to 10 pages and shows how many types of problems it finds. You pay only if you want the full report.

Start the free pre-check

← Previous chapter: Entity SEO: how search and AI engines recognize your brand Next chapter (out on Monday, 08:30): Content refresh SEO: how to update old pages that already rank →