WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] MultiSite Images Broken (11 posts)

  1. smithsaga
    Member
    Posted 4 years ago #

    I have MS 3.0.1 and I upload my pictures and get the URL subdomain.domain.com/files/2010/05/pic.png which is what it should be, but none of my pictures are appearing and I get a 404.

    My .htaccess is:

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule . index.php [L]

    However, I think I am missing something. I am using subdomains, so what do I need to add or change?

  2. Do your pretty permalinks works? the image url rewriting works on the same basis.

  3. smithsaga
    Member
    Posted 4 years ago #

    Yes pretty permalinks work.

  4. smithsaga
    Member
    Posted 4 years ago #

    So, my full link http://realestate.smithsaga.com/wp-content/blogs.dir/11/files/2010/08/featured_1.png works just fine. However, the url should be http://realestate.smithsaga.com/files/2010/08/featured_1.png. So isn't there something wrong with the .htaccess file?

  5. Subdomains or subfolders, doens't matter. Images are handled the same way.

    - do they show in the backend when you upload them to the medai amanger?
    - are they physically on the server? They'll be in blogs.dir/BLOGID#/files etc...

  6. smithsaga
    Member
    Posted 4 years ago #

    Yes they are on the server as http://realestate.smithsaga.com/wp-content/blogs.dir/11/files/2010/08/featured_1.png shows. However, when I check the media library, only a picture holder appears with no thumbnail. So I would guess that they do not show. Then when I drill down, it takes me to the picture as http://realestate.smithsaga.com/files/2010/08/featured_1.png and I get a 404.

  7. smithsaga
    Member
    Posted 4 years ago #

    Figured it out. Had a subdirectory named files in the root. Fixed it and everything worked like a charm!

  8. brookwarner
    Member
    Posted 3 years ago #

    I know this is an old thread but I am getting the same issue - but only in Google Chrome (???).

    My images load initially, and then disappear when the page completes loading. The same occurs in the back end. If i open the image url, its fine however.

    I'm led to believe that this is a .htaccess file issue? if so, what do i need to change?

    Cheers in advance!

  9. If it ONLY happens in chrome, try dumping chrome's cache.

  10. brookwarner
    Member
    Posted 3 years ago #

    Hi there. Tried that - but it happens on anyone's computer, who's running Chrome for Mac, not just mine.

    It only happens on the subdomain sites, not the root site.

  11. My gut feeling would be you have something goobered on the server itself, but ... Since this is an old AND resolved topic, make a new one, and in it post your .htaccess file.

Topic Closed

This topic has been closed to new replies.

About this Topic