Skip to content
Nazmul Nikhil
Menu

Image Broken (Ahrefs): Fix Image URLs That Return Errors

Ahrefs flags image URLs that return 4XX or 5XX errors. Visitors see empty boxes. Here's how to find the cause and replace or restore each image.

Nazmul Nikhil

By

Head of SEO & Assistant Manager, Digital Marketing at Notionhive

Published 2 min read
Image Broken (Ahrefs): Fix Image URLs That Return Errors
Photo: Pierre Bamin on Unsplash

In short

Ahrefs flags "Image broken" for image URLs used on your site that return a 4xx or 5xx error. The image can't load for visitors or appear in image search. Common causes are deleted media files, renamed files, wrong paths after a migration, and hotlinked images on other sites that were removed. Restore the file, update the path, or replace the image. See "Page has broken image" for the list of pages using each one.

A broken image shows up as an empty box or a small broken-image icon. It looks careless to visitors and gives search engines nothing to index.

Common causes

Cause Fix
File deleted from the media library Restore it or replace the image in content
Site migration changed upload paths Bulk-replace old paths, or redirect the old folder
Image hosted on another site that removed it Host your own copy (with permission)
Typo or case mismatch in the filename (Image.JPG vs image.jpg) Fix the reference; Linux servers are case-sensitive
CDN or image-optimization service misconfigured Check the CDN settings and origin path

How to fix it

  1. Open a broken image URL in your browser to confirm the error.

  2. Check whether the file exists on the server or in the media library.

  3. Restore, replace or re-upload it, and update the references.

  4. Recrawl to confirm.

WordPress: check Media > Library. After a migration, a search-and-replace on old upload URLs usually fixes many at once.

Shopify: images are on Shopify's CDN. Broken ones usually come from images hardcoded in theme files or descriptions that link to deleted files.

Webflow and Wix: images in the asset manager stay available. Broken images usually come from external URLs in embeds or rich text.

Custom builds: store images as paths like /uploads/name.webp and resolve them in one shared helper, so a domain or folder change is a one-line fix.

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

Sources and references

TAGSAhrefs Site AuditBroken imageImage 404Fix broken images
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