Title: Multisite images broken
Last modified: February 18, 2020

---

# Multisite images broken

 *  Resolved [patung](https://wordpress.org/support/users/patung/)
 * (@patung)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/multisite-images-broken-2/)
 * I have a very old but up to date multisite installation where all the images 
   are broken on the sub sites, but fine on the main site, which is in root. The
   actual images are located at, for example,
 * /public_html/wp-content/blogs.dir/7/files/2010/06/file.jpg
 * but wordpress outputs it as:
 * [http://sub.domain.com/files/2010/06/file.jpg](http://sub.domain.com/files/2010/06/file.jpg)
 * and it gives a 404 error, and I can’t view or edit the images in the Media Library.
 * This is htaccess
 *     ```
       RewriteEngine On
       RewriteBase /
       RewriteRule ^index\.php$ - [L]
   
       # uploaded files
       RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
   
       # add a trailing slash to /wp-admin
       RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
   
       RewriteCond %{REQUEST_FILENAME} -f [OR]
       RewriteCond %{REQUEST_FILENAME} -d
       RewriteRule ^ - [L]
       RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
       RewriteRule ^(.*\.php)$ $1 [L]
       RewriteRule . index.php [L]
       ```
   
 * This is wp-config
 *     ```
       define('MULTISITE', true);
       define('SUBDOMAIN_INSTALL', true);
       define('DOMAIN_CURRENT_SITE', 'www.mymainsite.com');
       define('PATH_CURRENT_SITE', '/');
       define('SITE_ID_CURRENT_SITE', 1);
       define('BLOG_ID_CURRENT_SITE', 1);
       ```
   
 * I’ve read lots of threads on this but if htaccess and wp-config are correct I’m
   not sure what I’m supposed to do to fix it.
 * Web server is nginx/1.17.5
    -  This topic was modified 6 years, 5 months ago by [patung](https://wordpress.org/support/users/patung/).

Viewing 1 replies (of 1 total)

 *  Thread Starter [patung](https://wordpress.org/support/users/patung/)
 * (@patung)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/multisite-images-broken-2/#post-12449869)
 * wrong forum, delete

Viewing 1 replies (of 1 total)

The topic ‘Multisite images broken’ is closed to new replies.

## Tags

 * [images](https://wordpress.org/support/topic-tag/images/)
 * [multisite](https://wordpress.org/support/topic-tag/multisite/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [patung](https://wordpress.org/support/users/patung/)
 * Last activity: [6 years, 5 months ago](https://wordpress.org/support/topic/multisite-images-broken-2/#post-12449869)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
