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.
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
- Refresh your browser page to rule out a temporary loading error.
- Clear your browser cache to ensure you are viewing the most recent version of your site.
- Check if the issue affects all images or only specific ones.
- Verify that your website files are uploaded to the correct directory on your Australian hosting account.
Detailed Instructions
Inspect the Broken Image
- Open your website in a web browser such as Google Chrome, Microsoft Edge, or Safari.
- Right-click on the area where the image should appear.
- Select Inspect or Inspect Element from the context menu.
- Look at the highlighted HTML code for an
imgtag. - Check the
srcattribute to see the file path the browser is trying to load. - Open your browser developer tools by pressing F12 or selecting More tools > Developer tools from the browser menu.
- Click the Console tab to look for specific error codes such as
404(not found),403(forbidden), or500(server error).
Test the Image URL Directly
- Copy the full image URL from the
srcattribute you found in the previous step. - Open a new tab in your web browser.
- Paste the image URL into the address bar and press Enter.
- If the image loads, the file exists and the issue is likely with your website code.
- If you see a 404 error, the file path is incorrect or the file is missing from the server.
- If you see a 403 error, your server permissions or hotlink protection may be blocking the image.
Check File Paths and Names
- Log in to your hosting control panel or connect via an FTP client.
- Navigate to the folder where your website images are stored, typically
/public_html/images/or/www/images/. - Confirm that the image file exists in that folder.
- Compare the filename on the server with the filename in your
srcattribute. Remember that file names are case-sensitive;Photo.jpgis not the same asphoto.jpg. - Open the image file to verify it is not corrupted and does not have zero bytes.
- 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
- Right-click the image file in your FTP client or file manager.
- Select File Permissions or Change Permissions.
- Set the permissions to
644for files. This allows the owner to read and write, while others can only read. - For folders containing images, set permissions to
755. - Click OK or Apply to save the changes.
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.
- Open your website in Google Chrome or Microsoft Edge.
- Look at the address bar for a Not secure warning or a shield icon.
- Open developer tools by pressing F12 and select the Console tab.
- Look for errors stating that mixed content was blocked.
- Update your image
srcattributes to usehttps://instead ofhttp://, or use relative paths such as/images/photo.jpg. - 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.
- Log in to your hosting control panel, such as cPanel.
- Navigate to the Security section.
- Select Hotlink Protection.
- Check if hotlink protection is enabled.
- If enabled, ensure your own domain is listed in the URLs to allow access field.
- 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.
- Connect to your hosting account via FTP or use the File Manager in your hosting control panel.
- Locate the
.htaccessfile in your/public_html/directory. - Download a copy of the file to your computer as a backup.
- Open the file in a text editor and look for lines containing
RewriteRuleorDeny fromthat reference image extensions such as.jpg,.png, or.gif. - Comment out or remove any rules that may be blocking image access.
- Save the file and upload it back to your server, overwriting the existing
.htaccessfile.
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.
- Open your HTML file in a text editor such as Notepad++ or VS Code.
- Locate the
imgtags for the missing images. - Verify the
srcattribute points to the correct relative path, for examplesrc="images/logo.png". - Confirm the image file exists at that exact location on your server.
- Update the path if the file has been moved or renamed.
- Save the HTML file and upload it to your server via FTP or File Manager.
- 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.
- Log in to your website admin dashboard.
- Navigate to the Plugins menu.
- Deactivate any recently installed plugins related to image optimization or caching.
- Refresh your website to see if the images reappear.
- 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.
- Log in to your hosting control panel.
- Navigate to the Metrics section and select Errors.
- Look for errors related to database connections or PHP version mismatches.
- Log in to your CMS admin dashboard.
- Navigate to Dashboard > Updates.
- Ensure your CMS and all installed themes are updated to the latest stable versions.
- 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?
💻 Open a Ticket