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.
Why link problems cost rankings and discovery
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.
How to check links by hand
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)How to fix links in templates, content and the CMS
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.
How RankDossier detects link problems
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>
Right
<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_GENERICNon-descriptive link textLINK_BROKEN_INTERNALBroken internal linksLINK_BROKEN_EXTERNALBroken external linksORPHAN_PAGEOrphan pagesDEEP_PAGEPages too deepLINK_NOFOLLOW_INTERNALnofollow on internal linksLINK_EMPTY_HREFLinks withhref="#"or javascript:LINK_FRAGMENT_MISSINGLinks to missing anchorsLINK_HTTP_INTERNALInternal links to http://LINK_BLANK_NOOPENERtarget="_blank"withoutrel="noopener"LINK_PARKED_DOMAINLinks to dead domainsJS_ONLY_NAVIGATIONJavaScript-only navigationBACKLINKS_PROFILEBacklink profileBACKLINKS_SPAMHigh share of spam referring domainsBACKLINKS_BROKENExternal links to missing pagesBACKLINKS_ANCHOR_OVEROPTToo many exact-match commercial anchorsANCHOR_EMPTYLinks without textLINK_SPONSORED_MISSINGPaid/affiliate links withoutrel="sponsored"LINK_UGC_MISSINGLinks in comments withoutrel="ugc"
Related check families
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