Skip to content
Nazmul Nikhil
Menu

HTTPS Page Links to HTTP Image (Ahrefs): Fix Insecure Image URLs

Ahrefs flags secure pages that load images over insecure HTTP. Browsers may upgrade or block them. Here's how to switch every image to HTTPS.

Nazmul Nikhil

By

Head of SEO & Assistant Manager, Digital Marketing at Notionhive

Published 1 min read
HTTPS Page Links to HTTP Image (Ahrefs): Fix Insecure Image URLs
Photo: Zoshua Colah on Unsplash

In short

Ahrefs flags "HTTPS page links to HTTP image" when a secure page loads one or more images with http:// URLs. Modern browsers try to upgrade these images to HTTPS automatically, and if that fails, the image doesn't load. Change the image URLs to HTTPS (or to relative paths), usually with a database search-and-replace.

This is the image-specific version of mixed content.

How to fix it

  1. Open one flagged image URL with https:// instead of http://. If it loads, a simple URL change fixes it.

  2. Replace http:// image URLs in content and templates.

  3. If an external image isn't available over HTTPS, host it yourself (with permission) or remove it.

WordPress: replace http://yourdomain.com/wp-content/uploads with the HTTPS version using a search-and-replace plugin or WP-CLI. Back up first.

Shopify, Webflow and Wix: their own image hosting uses HTTPS. HTTP images come from external URLs pasted into content or custom code.

Custom builds: store image paths without the domain (for example /uploads/photo.webp) so the protocol is never hardcoded. The upgrade-insecure-requests header is a useful safety net; see "HTTPS/HTTP mixed content".

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

Sources and references

TAGSAhrefs Site AuditHttps page http imageMixed content imagesHttp images on https site
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