Skip to content
Nazmul Nikhil
Menu

HTTPS Page Has Internal Links to HTTP (Ahrefs): Clean Up Old Links

Ahrefs flags secure pages that still link to http:// versions of your URLs. Each click then goes through a redirect. Here's how to update them in bulk.

Nazmul Nikhil

By

Head of SEO & Assistant Manager, Digital Marketing at Notionhive

Published 3 min read
HTTPS Page Has Internal Links to HTTP (Ahrefs): Clean Up Old Links
Photo: Zaqy Al Fattah on Unsplash

In short

Ahrefs flags "HTTPS page has internal links to HTTP" when HTTPS pages on your site link to HTTP URLs on the same site. If you redirect HTTP to HTTPS, every one of those clicks takes an extra hop. If you don't, visitors land on an insecure page. Update the links to https://.

This is almost always leftover from an HTTPS move. The site went secure, but links typed into posts, menus and widgets years ago still say http://.

Why it matters

  • With a redirect in place: the user gets there, but each click costs an extra request, and crawlers follow links to URLs you've retired. Ahrefs also lists these under "Page has links to redirect".

  • Without a redirect: visitors move from a secure page to an insecure copy, and browsers may show a "Not secure" warning. Google also counts these links as signals for the HTTP version.

How to fix it

  1. Confirm HTTP already redirects to HTTPS site-wide. If not, fix that first (see the HTTP to HTTPS redirect article).

  2. Export the issue and look at where the links sit. Links in menus, footers and templates fix many pages at once.

  3. Replace http://yourdomain.com with https://yourdomain.com in content, menus and templates.

WordPress: use a database search-and-replace plugin (Better Search Replace is a common choice) to change http://yourdomain.com to https://yourdomain.com. Back up the database first, run a dry run, and include serialized data. Check Appearance > Menus for custom links.

Shopify: edit links in pages, blog posts and menus (Content > Menus). Search the theme code for http:// links too.

Webflow and Wix: search pages and CMS items for old link fields, and update buttons and menus.

Custom builds: store internal links as relative paths (/about/) or build them from one site URL setting, so a protocol change never leaves stale links.

Free SEO audit

Not sure which issues matter on your site?

I'll review your site and send you the fixes that matter most, in plain English.

Get my free audit →

How to confirm the fix

Recrawl. The count should drop to zero, and so should the matching rows in "Page has links to redirect".

A worked example

A blog with 400 posts moved to HTTPS in 2019. Posts written before the move contain links typed as http://example.com/.... The redirect works, so nobody noticed. Ahrefs, though, lists all 400 posts, and the same URLs also appear under "Page has links to redirect".

One database search-and-replace from http://example.com to https://example.com fixes every post in a few minutes. Check that you include http://www.example.com too, if the site ever used www.

Before you search and replace

  • Back up the database.

  • Run a dry run first to see how many rows will change.

  • Use a tool that handles serialized data, such as WordPress plugin settings. A raw SQL replace can corrupt those values.

  • Clear caches afterwards (page cache, CDN), or crawlers may keep seeing the old HTML.

Common mistakes

  • Replacing only the bare domain and missing the www variant.

  • Forgetting widgets, menus and theme settings, which may sit in different database tables from post content.

  • Using protocol-relative links (//example.com/...). They work, but plain https:// or relative paths are clearer and avoid surprises.

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

Sources and references

TAGSAhrefs Site AuditHttps page has internal links to httpAhrefs https internal links to httpHttp internal links
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