Contents
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_htmlbecause it was left out of the ZIP or the upload was cut off. - In Vite and React projects, an image in
srcis bundled only if you import it in code (import hero from './hero.jpg'). An image you reference as a plain string must live inpublicto be copied intodist. - 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
- Laravel: files saved in
storage/app/publicneed a symbolic link atpublic/storage. See Laravel images not showing. - WordPress after a move: image URLs in the database still point at the old domain or at
http://. Replace them with a search-and-replace tool as in the WordPress migration guide, and see mixed content.
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
localhostbefore 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.