Skip to content
Nazmul Nikhil
Menu

HTTP to HTTPS Redirect (Ahrefs): Good Redirect, Outdated Links

Ahrefs lists HTTP URLs that redirect to HTTPS. The redirect is correct, but it means something still links to HTTP. Here's what to update.

Nazmul Nikhil

By

Head of SEO & Assistant Manager, Digital Marketing at Notionhive

Published 1 min read
HTTP to HTTPS Redirect (Ahrefs): Good Redirect, Outdated Links
Photo: Jonathan Phillips on Unsplash

In short

Ahrefs lists "HTTP to HTTPS redirect" for HTTP URLs on your site that redirect to their HTTPS version. That redirect is correct and should stay in place permanently. Ahrefs found these URLs because something links to them: internal links, sitemaps, canonicals or hreflang tags still using http://. Update those references to HTTPS so visitors and crawlers skip the extra hop.

This is a notice, and the redirect itself is exactly what you want. The useful question is why Ahrefs found HTTP URLs at all.

Where HTTP references hide

  • Links in old posts and pages

  • Menus and footer links added before the HTTPS move

  • XML sitemaps generated with the old protocol

  • Canonical, hreflang or Open Graph tags

  • Hardcoded URLs in theme files

How to fix it

  1. Check the incoming links for the flagged URLs in Ahrefs.

  2. Replace http://yourdomain.com with https://yourdomain.com in content and templates. On WordPress, a database search-and-replace does this in one pass (back up first).

  3. Regenerate sitemaps and check canonicals.

  4. Keep the redirect. External sites will link to HTTP forever.

If the redirect isn't site-wide yet, this Apache rule forces HTTPS:

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [L,R=301]

Shopify, Webflow and Wix: HTTPS redirects are automatic. Just update hardcoded http:// links in content and custom code.

Going further: HSTS

Once everything works over HTTPS, the Strict-Transport-Security header tells browsers to use HTTPS directly, skipping the redirect for return visitors. Add it only when you're sure every subdomain supports HTTPS.

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

Sources and references

TAGSAhrefs Site AuditHttp to https redirectRedirect http to https htaccessForce https
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