Skip to content
Server and cPanel3 min read

Images not showing after uploading your site to hosting

Broken image icons, and in the console: Failed to load resource: the server responded with a status of 404

Short answer

A broken image icon after upload means the browser requested the image from a URL where nothing exists. The usual causes are a letter-case mismatch between the file and the link (Logo.PNG versus logo.png), a path from your computer such as C:\ or localhost, or images that were never uploaded. Open the image in a new tab to see its URL and whether it returns 404 or 403.

ArabyHost teamLast updated: ShareWhatsAppXLinkedIn
Contents
  1. Find the cause in a minute
  2. Causes, most likely first
  3. How to confirm it is fixed
  4. How to avoid it
  5. On ArabyHost

The text and layout are there, but every image is an empty box or a broken image icon. The HTML arrived, the browser asked for each image at a specific URL, and got nothing usable back. The first step is to see that URL.

Find the cause in a minute

Right-click where the image should be and choose Open image in new tab (or press F12, open Network and filter by Img). Look at the URL and the response:

What you see What it means
404 Not Found No file exists at that exact path
403 Forbidden The file exists but access is denied
A URL starting with file:///, C:\ or localhost The link points at your computer
An old domain, or http:// A link saved before a move, or blocked as mixed content

Causes, most likely first

1. Letter case or extension

The Linux server distinguishes Logo.PNG from logo.png, and .jpg from .jpeg. Windows does not, which is why it works on your computer. Open the image folder in File Manager, compare the name with the link in your code letter by letter, then rename the file or fix the link. Avoid spaces and non-Latin characters in file names.

2. A path from your computer

Design tools and some AI tools write paths such as C:/Users/Ahmed/Desktop/site/img/hero.jpg or http://localhost:3000/images/hero.jpg. Search your files for localhost, C: and file:/// and replace them with relative paths like img/hero.jpg.

3. The images were not uploaded, or went elsewhere

  • The image folder is missing from public_html because it was left out of the ZIP or the upload was cut off.
  • In Vite and React projects, an image in src is bundled only if you import it in code (import hero from './hero.jpg'). An image you reference as a plain string must live in public to be copied into dist.
  • The site is in a subfolder and the link starts with /, so the browser looks at the domain root. See CSS and JS not loading.

4. Permissions block it (403)

If opening the image directly gives a 403 error, fix it in File Manager: select the file, choose Permissions, set 644, and 755 for the folder. The file permissions explainer covers what the numbers mean. If images show on your site but are blocked when another site embeds them, cPanel’s Hotlink Protection is on, and that is intended.

5. User-uploaded images in Laravel or WordPress

How to confirm it is fixed

Open the image URL directly in a private window: the image should show on its own. Then hard-reload the page with Ctrl+F5 and check in Network that every image returns 200.

How to avoid it

  • Lowercase Latin image names with hyphens, no spaces.
  • Relative paths inside the project, and a quick search for localhost before every upload.
  • Compress images before uploading, as in the image optimisation guide: large images slow the site and fill the disk.

On ArabyHost

You can rename files and fix permissions in File Manager from the panel without extra software, and sites run on LiteSpeed with a free SSL certificate issued automatically, so keep image links https or relative. If you cannot tell why an image is refused, the Araby AI assistant reads the error log and explains it. Daily backups mean you can restore an image folder you deleted by mistake.

FAQ

The images show for me but not for others. Why?

The image URL most likely points at your computer (localhost or a C: path) or at a copy in your browser cache. Open the site in a private window or on another phone to see what visitors see.

Why do images with Arabic names not show?

Arabic letters and spaces become codes such as %D8 in the URL, and their encoding can differ between your computer and the server. Rename images with lowercase Latin letters and hyphens, such as product-1.jpg.

I moved a WordPress site and images point to the old domain. What now?

Image URLs are stored in the database with the old domain. Replace them with a search-and-replace tool that understands WordPress serialized data, not by editing the SQL file by hand.

What permissions should image files have?

644 for files and 755 for folders. An image set to 600 is readable only by your account, so the server answers visitors with a 403.

Useful? Share it with someone who needs it:WhatsAppXLinkedIn

Read next

Ready to put your idea online?

Fast, isolated hosting, support that understands you, and an AI assistant that fixes problems with you.