Skip to content
Nazmul Nikhil
Menu

Redirect Loop (Ahrefs): Find and Break the Circle

A redirect loop sends a URL back to itself, so the page never loads. Here's how to find the conflicting rules, from SSL settings to plugins, and fix them.

Nazmul Nikhil

By

Head of SEO & Assistant Manager, Digital Marketing at Notionhive

Published 2 min read
Redirect Loop (Ahrefs): Find and Break the Circle
Photo: Maksym Kaharlytskyi on Unsplash

In short

Ahrefs flags "Redirect loop" when following a URL's redirects leads back to a URL already in the chain, so no final page is ever reached. The page is inaccessible to visitors and search engines. Loops are almost always caused by two rules that disagree, often about HTTPS, www, or trailing slashes. Find the conflicting rules and keep only one.

In a redirect loop, URL A sends you to URL B, and B sends you back to A. Browsers give up and show "too many redirects."

Trace the loop

curl -sIL --max-redirs 10 https://example.com/page/ | grep -iE "^(HTTP|location)"

The output shows each hop. Look for where it starts repeating.

Common causes

Cause Fix
CDN set to "Flexible" SSL while the server forces HTTPS Set the CDN to Full (strict) SSL, or remove the server-side redirect
Two rules disagree on www or non-www Pick one version and remove the other rule
One rule adds a trailing slash, another removes it Keep one convention
A redirect plugin rule conflicts with .htaccess Remove the duplicate rule
WordPress Site Address doesn't match the redirect Make both URLs in Settings > General match your chosen version

Platform tips

WordPress: check Settings > General, .htaccess, your redirect plugin, and any SSL plugin. With Cloudflare, "Flexible" SSL is a classic cause.

Shopify: check that a URL redirect doesn't point back to a URL that itself redirects, for example two redirects pointing at each other.

Webflow: check that no 301 rule's target matches another rule's source.

Wix: check the URL Redirect Manager for rules pointing at each other.

Custom builds: check proxy headers. An app behind a proxy may think every request is HTTP and keep redirecting to HTTPS. Trust the X-Forwarded-Proto header from your proxy.

Common mistakes

  • Clearing browser cookies and calling it fixed. If curl still loops, crawlers still loop.

  • Adding more rules to fix a loop. Remove rules instead.

This guide isn't affiliated with or endorsed by Ahrefs.

Sources and references

TAGSAhrefs Site AuditRedirect loopToo many redirects errorErr_too_many_redirects
Nazmul Nikhil

About the author

Nazmul Nikhil

Head of SEO & Assistant Manager, Digital Marketing at Notionhive

SEO and AI search consultant in Dhaka, Bangladesh, helping small and mid-size businesses in the USA, UK, Australia and Canada.

Need help with this?

Get it fixed with Technical SEO

I find the issues that cost you traffic and fix them, starting with the pages that matter most.

Keep reading

Related articles

All Site Audit Issues posts →

Get the next guide in your inbox

One email when a new SEO or AI search guide goes live.

Ready to grow?

Get a free audit of your website, or book a 30-minute call to talk through your goals.

Nazmul Hasan

Talk to Nazmul directly

Reply within 24h

WhatsApp +880 1682835118
nazmulnikhil@gmail.com