• Resolved hotweathersucks

    (@hotweathersucks)


    I have a WordPress multi-site server set up. It was recently upgraded to v4.4.2 from v4.4.2 and now uploaded images are not loading.
    It appears to be an issue with how WP rewrites URLs. When I uploaded an image, the URL on the page is http://servername.example.com/anothersamplesite/files/2016/03/9ff-GT9-R.jpg
    When I go to edit the site, under Sites, (site name), settings, the upload path is wp-content/blogs.dir/14/files. I checked that path under wp-content and the file exists and has rw permission for all.
    Here are the relevant parts of my .htaccess:
    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

    # protect wp-config.php
    <files wp-config.php>
    order allow,deny
    deny from all
    </files>

    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]

    Any help would be appreciated.

    Thanks

Viewing 1 replies (of 1 total)
  • Thread Starter hotweathersucks

    (@hotweathersucks)

    The fix ended up being to add this to my .htaccess file:
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]

Viewing 1 replies (of 1 total)
  • The topic ‘Uploaded images not showing’ is closed to new replies.