WordPress.org

Ready to get started?Download WordPress

Forums

Images not showing (7 posts)

  1. Preserved
    Member
    Posted 1 year ago #

    Hi Everyone. I though I had multisite set up properly. My first site setup used the full domain. Everything went great. My second site set up fine, activated the theme just fine, but images uploaded don't show. I can upload an image via media, and get no error. Lists of images are in the admin (no thumbnails). Looking via FTP, I can see the /wp-content/blogs.dir/2/files..and so on. My images are getting uploaded. However, they do not show in a browser.

    Looking at the code I as an example I see:
    http://subdomsin.thedomain.com/files/2012/07/header5.png

    I'd read that having a path that does not exist is normal? But then how to toubleshoot?

  2. What's in your .htaccess?

    Did you check if AllowOverride is set to All in your httpd.conf?

  3. Preserved
    Member
    Posted 1 year ago #

    I'll look at httpd.conf. Here's my .htaccess:

    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]
  4. The .htaccess is good, so yeah, check the httpd.conf

  5. Preserved
    Member
    Posted 1 year ago #

    httpd.conf is good too. Hmm. Not sure that to check next.

  6. Preserved
    Member
    Posted 1 year ago #

    Looking at my settings.
    .htaccess is ok

    httpd.conf is supposedly ok. HostGator confirms AllowOverride is set to "All".
    Blogs.dir set to 0775

    The site that won't display the images is a subdomain site. The admin will upload the images properly to: /wp-content/blogs.dir/2/files I can see them via FTP.

    In the subdomain site, the browser URL to the images is /files/2012/07/images.png

    Does this look correct? Then what prevents the images from showing in a browser? Or in the admin?

  7. This line of code:
    RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]

    That says 'When you visit site.domain.com/files/2012/07/blah.jpg, I really mean site.domain.com/wp-includes/ms-files.php?file=/2012/07/blah.jpg and that's actually over at site.domain.com//wp-content/blogs.dir/2/files/2012/07/blah.jpg'

    So what's happening here is that .htaccess bit isn't working. Which is what you have to tell Hostgator.

Topic Closed

This topic has been closed to new replies.

About this Topic