How to Fix Nofollow on Internal Links (Step-by-Step)

Some of your pages link to other pages on your own site with rel="nofollow". That tells search engines not to pass ranking signals through those links, so your own pages lose authority they should get from each other. By the end of this guide you will have found every internal nofollow link, removed it from content, templates and plugins, and confirmed the fix with a re-crawl.

By Updated ⏱ 30 minutes🎯 Beginner● Medium impactOn-Page
Illustration: Nofollow on internal links fix guide
ON-PAGE · FIX GUIDE Nofollow on internal links IMPACTEFFORT TIME30 minutes LEVELBeginner

Why it matters

Internal links are how Google, Bing and AI crawlers discover pages and judge which ones matter most. A nofollow on an internal link does not save crawl budget. The link equity is simply dropped, and the target page may be crawled less often or treated as less important.

When it sits on navigation, breadcrumbs or pagination, a single template can weaken hundreds of URLs at once. It also signals that you don't trust your own content, which makes those pages less likely to be surfaced or cited in search results and AI answers.

✕Before<a href="/pricing"rel="nofollow">Pricing</a> in the mainmenu on every page of example.com✓After<a href="/pricing">Pricing</a>, aplain followed internal link thatpasses equity to the pricing page

What you need

Admin or editor access to your CMS or theme files
A desktop browser with DevTools (Chrome, Edge or Firefox)
The list of flagged URLs from your audit report
Optional: a crawler such as Screaming Frog SEO Spider or Sitebulb

Step-by-step fix

1

List every internal nofollow link on flagged pages

Open one of the pages your audit flagged, then open DevTools (F12) and go to the Console tab. Paste the snippet below. It prints every link that points to your own domain and carries nofollow in its rel attribute.

Repeat on a few page types, such as the homepage, a blog post, a product page and a category page, so you can tell whether the problem comes from content or from a shared template.

javascript
[...document.querySelectorAll('a[rel~="nofollow" i]')].filter(a => a.hostname === location.hostname || a.hostname.endsWith('.' + location.hostname.replace(/^www\./,''))).map(a => ({text: a.textContent.trim(), href: a.href, rel: a.rel}))
Pro tip: In Screaming Frog, open Bulk Export > Links > All Inlinks and filter the Follow column for "False". You get every internal nofollow link sitewide in one CSV.
2

Decide which links truly should not be crawled

Most internal nofollows are leftovers from old "PageRank sculpting" advice and should simply be removed. For the few URLs you genuinely don't want crawled or indexed, nofollow on the link is the wrong tool. Use these instead:

  • Login, cart, checkout and account pages: add a Disallow rule in robots.txt or a noindex meta tag on the page itself.
  • Faceted filter or sort URLs: use canonical tags to the main category, or block the parameters in robots.txt.
  • Links to staging or thin pages: remove the link completely.
text
User-agent: *
Disallow: /cart
Disallow: /checkout
Disallow: /my-account
Disallow: /*?orderby=
Pro tip: Never Disallow a page in robots.txt that also carries noindex. Crawlers can't see a noindex on a page they are blocked from fetching.
3

Remove nofollow from links inside page content

For links written into posts, pages or product descriptions, edit each one in your CMS. Switch the block or field to HTML/code view and delete nofollow from the rel attribute. If the attribute also contains noopener or noreferrer, keep those values and remove only nofollow.

Also remove ugc and sponsored from internal links, because they are hints meant for user-generated content and paid links only.

html
<!-- Before -->
<a href="https://www.example.com/guides/setup" target="_blank" rel="nofollow noopener">Setup guide</a>

<!-- After -->
<a href="https://www.example.com/guides/setup" target="_blank" rel="noopener">Setup guide</a>
Pro tip: Use a search-and-replace plugin or a database query only after taking a backup. Scope it to your own domain so you don't strip nofollow from legitimate external or sponsored links.
4

Fix nofollow in shared templates and menus

If the same nofollow link appears on every page, it lives in the header, footer, breadcrumb, pagination or sidebar template. Search your theme or codebase for nofollow and remove it wherever the href is internal. Common culprits are "Log in", "Contact", language switchers, tag clouds, "Load more" pagination and add-to-cart buttons.

text
grep -rni 'nofollow' ./wp-content/themes/example-theme ./templates ./components
Pro tip: Check menu item settings in the CMS too. Many menu builders store a per-item "Link Relationship (XFN)" value that the theme outputs as rel.
5

Turn off plugins or scripts that add nofollow

SEO plugins, "external link" plugins and some page builders can add nofollow automatically. They often misclassify links that use a different subdomain, http vs https, or a full absolute URL. Review their settings and add your own domains, including www and non-www, to any internal or whitelist field.

Also check for JavaScript that rewrites links after page load. View the raw source with Ctrl+U and compare it with the rendered DOM in DevTools.

Pro tip: If the nofollow only appears in the rendered DOM and not in view-source, a script is injecting it. Search your tag manager containers for setAttribute('rel'.
6

Clear caches and re-test the flagged pages

Purge your page cache, CDN cache and any optimization plugin cache so visitors and crawlers get the updated HTML. Run the console snippet from Step 1 again on every page type. It should return an empty array.

Then re-run your site audit and confirm the number of pages flagged for internal nofollow links drops to zero.

text
curl -s https://www.example.com/ | grep -oiE '<a [^>]*href="(https?://(www\.)?example\.com)?/[^"]*"[^>]*nofollow[^>]*>'
Pro tip: In Google Search Console, use URL Inspection > Test live URL on a key page and view the crawled HTML to confirm Google sees the clean links.

Platform-specific notes

WordPress

In the block editor, select the link, open the link popover and untick any "Add rel=nofollow" checkbox added by Yoast, Rank Math or AIOSEO. Rank Math also has an auto-nofollow option under Rank Math > General Settings > Links; make sure your domain is not caught by it. For menus, go to Appearance > Menus, enable Screen Options > Link Relationship (XFN), and clear "nofollow" from each item. In block themes, edit the Navigation block in Appearance > Editor. WooCommerce adds rel="nofollow" to add-to-cart button links by default; you can remove it with the woocommerce_loop_add_to_cart_args filter or leave it, since those ?add-to-cart= URLs should not be crawled anyway.

Shopify

Go to Online Store > Themes > ... > Edit code and search the sections and snippets folders for nofollow. Common places are header.liquid, footer.liquid, pagination snippets and customer login links. Links inside product or blog descriptions are edited in the rich-text editor's Show HTML (<>) view. Some apps inject links through app blocks, so check Theme settings > App embeds.

Wix

Select the text link or button, click the link icon, and in the link panel make sure the rel options (nofollow, sponsored, ugc) are unchecked for internal pages. Sitewide rel settings for external links are under Settings > SEO Settings, but they shouldn't affect internal page links. Re-check menus in the Editor's Site Menu panel.

Webflow

Webflow has no nofollow toggle, so nofollow comes from a custom attribute. Select the link element, open Element Settings (the D key), scroll to Custom Attributes and delete the rel = nofollow entry. Check Symbols and Components such as the navbar and footer, plus links inside Rich Text fields in CMS collections, then republish.

Next.js / React

Search the codebase for rel="nofollow" on <Link> and <a> components, and for helper components that set rel based on a faulty isExternal() check. Make sure that check compares hostnames against all your domains, not just the exact current origin. Redeploy and purge the CDN cache (for example, Vercel or Cloudflare) afterwards.

Check that it worked

✅ How to verify

  • Run the DevTools console snippet from Step 1 on the homepage, a category page, a product page and a blog post; each should return an empty array.
  • Crawl the site with Screaming Frog and check Bulk Export > Links > All Inlinks; no internal rows should show Follow = False.
  • Re-run the site audit and confirm the internal nofollow check passes with zero flagged pages.
  • Use URL Inspection > Test live URL in Google Search Console and search the crawled HTML for "nofollow" to confirm Google receives the cleaned markup.

⚠️ Common mistakes

  • Removing noopener or noreferrer along with nofollow. Only nofollow should go, and target="_blank" links still need noopener behavior.
  • Using internal nofollow to hide login, cart or filter pages. It doesn't stop crawling or indexing; use robots.txt, noindex or canonical tags instead.
  • Fixing links in page content but missing the header, footer or pagination template that adds nofollow on every page.
  • Running a sitewide find-and-replace that also strips rel="sponsored" or nofollow from paid and external links that legitimately need it.

Is this still an issue on your site? Run a free audit — ZORO checks this and 294 other SEO, AI-visibility, accessibility and security signals, with fixes for your platform.

Check my site free

FAQ

Should internal links ever be nofollow?

Almost never. Google treats nofollow as a hint and doesn't pass equity through it. So you lose authority without saving crawl budget, and the page can still be found other ways. If a page shouldn't be crawled or indexed, use robots.txt or a noindex tag on that page instead.

Does nofollow on internal links save crawl budget?

No. Google may still crawl the target URL if it finds it through sitemaps, other links or external sites. Blocking with robots.txt or removing the link entirely are the reliable ways to control crawling.

Is a meta robots nofollow tag the same problem?

It's related but broader. <meta name="robots" content="nofollow"> applies nofollow to every link on the page. If you find it on normal content pages, remove it or change it to index, follow. It's often left over from a staging site.

How long until removing internal nofollow affects rankings?

Google needs to recrawl the linking pages. For most sites that takes from a few days to a few weeks. Requesting indexing for key templates in Search Console and keeping your XML sitemap updated can speed this up.