Home › Knowledgebase › KB-1160

Why Your Small Business Website Images Aren't Loading and How to Fix Broken Links

Summary

This guide helps you troubleshoot and resolve: Why Your Small Business Website Images Aren't Loading and How to Fix Broken Links. Follow the steps below to fix the issue.

Quick Tip: Need immediate assistance? 💻 Open a Ticket

Common Causes

Missing images and broken links can make your small business website look unprofessional and drive potential customers away. Whether you run a local shop in Brisbane or a home office elsewhere in Australia, this guide will help you identify why your website images aren't loading and walk you through the steps to fix broken file paths and permission issues.

Quick Fix Steps

  1. Refresh your browser page to rule out a temporary loading error.
  2. Clear your browser cache to ensure you are viewing the most recent version of your site.
  3. Check if the issue affects all images or only specific ones.
  4. Verify that your website files are uploaded to the correct directory on your Australian hosting account.

Detailed Instructions

Inspect the Broken Image

  1. Open your website in a web browser such as Google Chrome, Microsoft Edge, or Safari.
  2. Right-click on the area where the image should appear.
  3. Select Inspect or Inspect Element from the context menu.
  4. Look at the highlighted HTML code for an img tag.
  5. Check the src attribute to see the file path the browser is trying to load.
  6. Open your browser developer tools by pressing F12 or selecting More tools > Developer tools from the browser menu.
  7. Click the Console tab to look for specific error codes such as 404 (not found), 403 (forbidden), or 500 (server error).

Test the Image URL Directly

  1. Copy the full image URL from the src attribute you found in the previous step.
  2. Open a new tab in your web browser.
  3. Paste the image URL into the address bar and press Enter.
  4. If the image loads, the file exists and the issue is likely with your website code.
  5. If you see a 404 error, the file path is incorrect or the file is missing from the server.
  6. If you see a 403 error, your server permissions or hotlink protection may be blocking the image.

Check File Paths and Names

  1. Log in to your hosting control panel or connect via an FTP client.
  2. Navigate to the folder where your website images are stored, typically /public_html/images/ or /www/images/.
  3. Confirm that the image file exists in that folder.
  4. Compare the filename on the server with the filename in your src attribute. Remember that file names are case-sensitive; Photo.jpg is not the same as photo.jpg.
  5. Open the image file to verify it is not corrupted and does not have zero bytes.
  6. If the file is missing, misspelled, corrupted, or zero bytes, upload the correct file or update the file path in your website code.

Verify File Permissions

  1. Right-click the image file in your FTP client or file manager.
  2. Select File Permissions or Change Permissions.
  3. Set the permissions to 644 for files. This allows the owner to read and write, while others can only read.
  4. For folders containing images, set permissions to 755.
  5. Click OK or Apply to save the changes.
Incorrect permissions are a common cause of images failing to load after a website migration or a new plugin installation.
Always create a full backup of your website files and database before editing HTML code directly, changing file permissions, updating plugins, or modifying core scripts.

Troubleshooting

Check for SSL and Mixed Content Issues

If your Brisbane business website uses HTTPS but your images are loading over HTTP, modern browsers will block them as mixed content.

  1. Open your website in Google Chrome or Microsoft Edge.
  2. Look at the address bar for a Not secure warning or a shield icon.
  3. Open developer tools by pressing F12 and select the Console tab.
  4. Look for errors stating that mixed content was blocked.
  5. Update your image src attributes to use https:// instead of http://, or use relative paths such as /images/photo.jpg.
  6. Save your changes and refresh your website.

Check Hotlink Protection

Hotlink protection prevents other websites from displaying your images, but it can also block images from loading on your own site if configured incorrectly.

  1. Log in to your hosting control panel, such as cPanel.
  2. Navigate to the Security section.
  3. Select Hotlink Protection.
  4. Check if hotlink protection is enabled.
  5. If enabled, ensure your own domain is listed in the URLs to allow access field.
  6. Add your domain if it is missing and click Submit or Save.

Check .htaccess Rules

Your .htaccess file may contain rules that block image requests or redirect image files incorrectly.

  1. Connect to your hosting account via FTP or use the File Manager in your hosting control panel.
  2. Locate the .htaccess file in your /public_html/ directory.
  3. Download a copy of the file to your computer as a backup.
  4. Open the file in a text editor and look for lines containing RewriteRule or Deny from that reference image extensions such as .jpg, .png, or .gif.
  5. Comment out or remove any rules that may be blocking image access.
  6. Save the file and upload it back to your server, overwriting the existing .htaccess file.

Steps for Static HTML Sites

If your website is built with static HTML rather than a content management system, follow these steps to fix broken images.

  1. Open your HTML file in a text editor such as Notepad++ or VS Code.
  2. Locate the img tags for the missing images.
  3. Verify the src attribute points to the correct relative path, for example src="images/logo.png".
  4. Confirm the image file exists at that exact location on your server.
  5. Update the path if the file has been moved or renamed.
  6. Save the HTML file and upload it to your server via FTP or File Manager.
  7. Refresh your website to confirm the images load correctly.

CMS and Plugin Issues

If you use a content management system like WordPress, broken images are often caused by incompatible extensions or plugin conflicts.

  1. Log in to your website admin dashboard.
  2. Navigate to the Plugins menu.
  3. Deactivate any recently installed plugins related to image optimization or caching.
  4. Refresh your website to see if the images reappear.
  5. Reactivate plugins one by one to identify the conflicting extension.

Database Connection and Script Errors

Underlying script version mismatches or database connection drops can prevent your website from retrieving image URLs stored in the database.

  1. Log in to your hosting control panel.
  2. Navigate to the Metrics section and select Errors.
  3. Look for errors related to database connections or PHP version mismatches.
  4. Log in to your CMS admin dashboard.
  5. Navigate to Dashboard > Updates.
  6. Ensure your CMS and all installed themes are updated to the latest stable versions.
  7. If you recently performed an automated update, verify that the database schema was updated correctly.

When to Get Further Help

If you have checked your file paths, verified permissions, tested image URLs directly, and updated your CMS but images are still missing, there may be a deeper server configuration issue. You can Open a Ticket with our Brisbane support team for assistance.

Still Having Issues?

Need more help? If the issue persists after trying these steps, please open a support ticket and our team will assist you.

💻 Open a Ticket