RankDossier
Check family

Link problems: broken links, orphan pages and weak anchors

Links let visitors and crawlers move through a site and carry context in their anchor text. These checks look for broken internal and external links, orphan pages, pages that are too deep, links with no or vague text, empty href values, nofollow on internal links, http links, missing rel values, JavaScript-only navigation and the backlink profile. Link every page from a relevant page with clear text.

How the problem happens

Pages move or are deleted without updating the links that point to them. New pages are published without any link from a menu or related page, and buttons use JavaScript instead of a plain href.

Links are how a crawler travels. It starts from known pages, follows every real link, and reaches the rest of the site through them. A page that no internal link points to is an orphan: it may sit in the sitemap, but without internal links it gets no signal of importance from the rest of the site, so crawlers may find it later or visit it less often, and it can have a harder time ranking. A page buried many clicks below the home page is visited less often, and the more clicks it takes to reach a page, the less weight it usually receives from the rest of the site.

The link text is a signal as well. An anchor such as click here or read more tells neither a visitor nor a search engine where the link leads, while a descriptive anchor names the topic of the target page. Broken internal links send visitors and bots to errors and waste crawl effort. Links that only work through JavaScript, links to the empty address #, links that point to a section that does not exist and nofollow on your own pages all stop value from flowing. External links matter too: dead outside links lower the quality of a page, and paid, affiliate or user-generated links that are not marked as such go against search engine guidelines.

Start from the page and read its links as a bot would. In the source, every navigation link should be an <a> element with a real href, not an element with a click handler. Check the anchor texts of your main links, and look for generic ones and for links that contain only an icon. Click through to the important pages and count the clicks from the home page; if a key page needs more than about four, treat it as a warning sign, because a good limit depends on the size and structure of the site.

To find orphans, take the list of URLs from your sitemap and compare it with the list of URLs a crawl actually reached through links, as in the example: pages that are in the first list but not the second are orphan candidates; open each one and look for internal links the crawl may have missed. Test a sample of links for errors. For the links pointing to you, look at the referring domains and at how many of the anchor texts are the exact commercial keyword.

<!-- Descriptive, crawlable internal link -->
<a href="/guide/core-web-vitals">Core Web Vitals explained</a>

<!-- Not crawlable, or says nothing -->
<a href="#" onclick="go()">Click here</a>
<span onclick="location='/pricing'">Pricing</span>

<!-- External link in a new tab -->
<a href="https://example.org/" target="_blank" rel="noopener">Source</a>

<!-- Paid, affiliate and user-generated links -->
<a href="https://partner.example/offer" rel="sponsored noopener">Offer</a>
<a href="https://user.example/" rel="ugc nofollow">Commenter site</a>

# Find pages with no internal links pointing at them
# (compare sitemap URLs with URLs found by a crawl)
comm -23 <(sort sitemap-urls.txt) <(sort crawled-linked-urls.txt)

Make navigation out of real links. Use <a href> for every menu, footer and in-text link, and make sure that the main sections are present in the first HTML rather than injected by a script. Link every important page from at least one other relevant page, ideally from the menu, a hub page and related articles, and keep the click depth of key pages low. Add contextual links in the body text with descriptive anchors, and replace generic ones with words that name the target.

Fix broken links by correcting the address, redirecting an old URL to its replacement with a single permanent redirect, or removing the link. Use the final https address for internal links and update links after a migration. Drop nofollow from your own pages. Make sure that every fragment link has a matching id. Add rel="noopener" to links that use target="_blank", mark paid and affiliate links with rel="sponsored" and user-generated links with rel="ugc", and remove links to dead domains. For links you receive, redirect the old addresses that others still link to onto the right page so the value is not lost, and do not buy links. In a CMS, use the internal link picker instead of pasting full addresses, so that moved pages update automatically.

RankDossier crawls the site, builds the link graph and checks every link. The checks in this family report generic and empty anchor texts, broken internal and external links, orphan pages, pages that are too deep, nofollow on internal links, links with an empty or JavaScript address, links to missing fragments, internal links to http, target blank without noopener, links to dead domains and navigation that depends on JavaScript. They also report paid or affiliate links without the sponsored mark and links in comments without the ugc mark.

Four further checks look at the links pointing to the site, from an external index: the backlink profile, a high share of spam referring domains, external links that lead to missing pages on your site and too many exact-match commercial anchors. These are estimates from a third-party index, not a measurement of your site. Try the Broken link checker on one page, read the internal links guide for structure and the broken links and redirects guide for fixes, and see the pages not indexed guide for what happens when pages are not discovered.

Wrong and right

Wrong

<a href="#">Read more</a>
<a href="http://example.com/old-page">here</a>
<a href="/gone" rel="nofollow">Pricing</a>
<a href="https://other.example.net" target="_blank">Partner</a>
<a href="/pricing">See the pricing plans</a>
<a href="https://example.com/guide">Read the audit guide</a>
<a href="https://other.example.net" target="_blank" rel="noopener">Partner site</a>

How to fix it

WordPress

Fix or remove the broken addresses from the report, add new pages to a menu or a related article, and write link text that says where the link leads instead of “click here”.

Next.js

Use Link components with a real href and descriptive text, and add rel noopener to links that open a new tab. Generate menus from the same list as your routes.

import Link from 'next/link';

<Link href="/pricing">See the pricing plans</Link>

Nginx

Redirect moved addresses to their new page with one 301 rule, and use curl to read the links in the page that the server returns.

curl -s https://example.com/ | grep -oi '<a [^>]*href="[^"]*"' | head

Check codes in this family

These checks belong to this family. Each code appears in the audit report with its own explanation and fix.

  • ANCHOR_GENERIC Non-descriptive link text
  • LINK_BROKEN_INTERNAL Broken internal links
  • LINK_BROKEN_EXTERNAL Broken external links
  • ORPHAN_PAGE Orphan pages
  • DEEP_PAGE Pages too deep
  • LINK_NOFOLLOW_INTERNAL nofollow on internal links
  • LINK_EMPTY_HREF Links with href="#" or javascript:
  • LINK_FRAGMENT_MISSING Links to missing anchors
  • LINK_HTTP_INTERNAL Internal links to http://
  • LINK_BLANK_NOOPENER target="_blank" without rel="noopener"
  • LINK_PARKED_DOMAIN Links to dead domains
  • JS_ONLY_NAVIGATION JavaScript-only navigation
  • BACKLINKS_PROFILE Backlink profile
  • BACKLINKS_SPAM High share of spam referring domains
  • BACKLINKS_BROKEN External links to missing pages
  • BACKLINKS_ANCHOR_OVEROPT Too many exact-match commercial anchors
  • ANCHOR_EMPTY Links without text
  • LINK_SPONSORED_MISSING Paid/affiliate links without rel="sponsored"
  • LINK_UGC_MISSING Links in comments without rel="ugc"

Read the full guide Internal linking SEO: how to connect the pages of your site for the wider picture. Test one page for free with the Broken link checker.

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