Support » Fixing WordPress » Multisite images broken

  • I have a WP Multisite and my images appear to be broken on my child site and main site. If I press refresh, the images re-appear but then others may disappear. Im getting complaints about the images being gone.

    My website is or

    Here is my .htaccess file:

    # BEGIN s2Member GZIP exclusions
    <IfModule mod_rewrite.c>
    	RewriteEngine On
    	RewriteBase /
    	RewriteCond %{QUERY_STRING} (^|\?|&)s2member_file_download\=.+
    	RewriteRule .* - [E=no-gzip:1]
    # END s2Member GZIP exclusions
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule  ^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*) $1 [L]
    RewriteRule  ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]

    Is there anything wrong with it? I really want to launch my site but not if there are broken images all over the place.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Because you are seeing images fail to load on some page loads, but not others, this may be a sign that your server or host is running out of memory (RAM) when attempting to serve the images. This can happen on a site network because wp-includes/ms-files.php is used serve images.

    Try contacting your host, and see if there are any memory issues or failures to load related to that file. According to WhoIsHostingThis, your host is Aurimas Rapalis trading as II Hosting Media.

    If you are self-hosted, or if your host is unhelpful, try changing your PHP maximum execution time or PHP memory limit. Putting your site behind a CDN, even a free one like, can be helpful in taking load off your server.

    Thank you so much. I have been searching for answers all week and this is the only answer that has been helping me! I downloaded W3 Super Cache (or whatever that name was) and I will definitely look into cloudflare. My hosting is extremely unhelpful. I gave them your message and all they said was that it look fine on their end… >:( I think the images I have been using are 300dpi. Should I lower it to 72dpi? Do you think that will help as well?

    Images on the internet always display at approximately 72dpi (depending on the monitor) no matter what, so it doesn’t effect anything that your images are at 300dpi– all that matters is their total pixel width and height (which is fine, your images are large, but not unreasonable).

    You can use as a third-part reference to see how your web site loads from different locations around the world. For example, here are the results of loading your site 5 times from Virginia. There are several images and files in red that are 404ing every time, a sign of a bad link, and a few assets that are intermittent.

    Overall, your site is scoring an “F” for performance in almost every category. If your host continues to be unresponsive, consider one of the hosts recommended by

    Thank you for the test! I have no clue what it all means or how to fix it, it looks pretty bad though. I will google some solutions… Now is that something I did wrong or is it something that is wrong with my hosting? Could my theme be the reason for all of the js and css issues?

    I am in the process of setting up cloudflare. I will let you know if that fixes the problem…

    Most of the test is for optimizing your theme, HTML, and images. In this case, for the images, the purpose of the test is to conclusively show that the problem with images failing to load sometimes is not just you. Is something you can bring to the host and say, “See? These red lines mean images don’t load. Here’s a third-party source we can both look at and see something is wrong, and it’s not because the images aren’t there.”

    It looks like you’ve improved some of you consistent 404s already. Congratulations on your progress! It also appears that the images aren’t failing to load as often, as shown in this test of loading the home page 10 times. You can also use the test to identify which images are taking the most space or could use more compression, based on their longer blue bars.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Multisite images broken’ is closed to new replies.