Skip to content
Nazmul Nikhil
Menu

HTTPS to HTTP Redirect (Ahrefs): Stop Sending Visitors to Insecure Pages

Ahrefs flags secure HTTPS URLs that redirect to insecure HTTP ones. That's a step backward for security and SEO. Here's how to find the rule and reverse it.

Nazmul Nikhil

By

Head of SEO & Assistant Manager, Digital Marketing at Notionhive

Published 1 min read
HTTPS to HTTP Redirect (Ahrefs): Stop Sending Visitors to Insecure Pages
Photo: John Cardamone on Unsplash

In short

Ahrefs flags "HTTPS to HTTP redirect" when an HTTPS URL redirects to an HTTP URL. Browsers may warn visitors, data is no longer encrypted, and it conflicts with Google's preference for HTTPS. It usually comes from an old rule written before the site moved to HTTPS, or a hardcoded HTTP target. Change the target to HTTPS, and make sure HTTP redirects to HTTPS everywhere.

This redirect goes the wrong way: from a secure page to an insecure one.

Common causes

Cause Fix
Old redirect rules with http:// targets Edit targets to https://
Site Address set to HTTP in the CMS Change it to HTTPS
A subdomain or section without an SSL certificate Install a certificate (cPanel's AutoSSL is free)
App behind a proxy building HTTP URLs Trust the proxy's protocol header

How to fix it

  1. Trace the redirect with curl -sIL to find which rule sends it to HTTP.

  2. Change the target to HTTPS.

  3. Confirm that the HTTP version then redirects back to HTTPS in one hop, so there's no loop.

WordPress: check Settings > General (both URLs must start with https://), then redirect plugin rules and .htaccess.

Shopify, Webflow and Wix: HTTPS is on by default, so this usually comes from a redirect rule with an http:// target, or from an external domain. Edit the rule.

Custom builds: in Express behind a proxy, set app.set('trust proxy', 1) so the app knows requests arrived over HTTPS.

Common mistakes

  • Fixing the redirect but leaving HTTP links in content, which then bounce through extra redirects.

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

Sources and references

TAGSAhrefs Site AuditHttps to http redirectRedirect to httpHttps downgrade redirect
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