WordPress.org

Support

Support » Multisite » [Resolved] Images not showing on site, in media library, in post editor

[Resolved] Images not showing on site, in media library, in post editor

Viewing 4 replies - 1 through 4 (of 4 total)
  • I created another new site (without importing an xml file) and added a post, but the images don’t show up there either: http://plain.learningmadeeasy.org/2012/10/05/plain-with-image/

    I forgot to mention that I have several .htaccess files as follows:

    1. Root .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]
    
    Options All -Indexes

    2. wp-content and wp-includes .htaccess:

    Order Allow,Deny
    Deny from all
    <Files ~ ".(css|jpe?g|png|gif|js)$">
    Allow from all
    </Files>

    I have also tried with both pretty and default permalinks and still no images.

    http://plain.learningmadeeasy.org/files/2012/10/life-saver.png fails.

    http://plain.learningmadeeasy.org/wp-includes/ms-files.php?file=/2012/10/life-saver.png fails.

    This is likely becuase your server’s httpd.conf isn’t set to AllowOverride All.

    This is likely becuase your server’s httpd.conf isn’t set to AllowOverride All.

    I have no idea what that means but I’m very grateful that I have somewhere to start.

    I spent an hour in Live Chat with my host and the images are showing now. I asked if AllowOverride All could be changed in .htaccess (based on a comment from you in another thread) and they said yes. They had me replace my original root .htaccess code with this:

    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).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]

    I don’t see any AllowOverride in there so I have no idea how they fixed the issue.

    I just want to say a huge thank you to you for pointing me in the right direction. I am very grateful for your help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] Images not showing on site, in media library, in post editor’ is closed to new replies.