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
Confirm HTTP already redirects to HTTPS site-wide. If not, fix that first (see the HTTP to HTTPS redirect article).
Export the issue and look at where the links sit. Links in menus, footers and templates fix many pages at once.
Replace
http://yourdomain.comwithhttps://yourdomain.comin 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.
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 plainhttps://or relative paths are clearer and avoid surprises.
This guide isn't affiliated with or endorsed by Ahrefs.
Related issues
Sources and references
Ahrefs Help, "HTTPS page has internal links to HTTP" error (checked Dec 1, 2026)
Google Search Central, How to specify a canonical URL (updated July 10, 2026)

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.



