• I have a network of sites setup, my images are displaying fine on the main site, they are uploading fine on the subsites, but they do not display in the image library or on the site itself. When I upload an image on a subdomain it seems to be storing it in the same place as my main site i.e. https://domain.com/wp-content/uploads/2012/03/image.png, but the url on the file upload seems to be set at https://domain.com/files/2012/03/image.png, which is clearly the wrong location of the file!

    my .htaccess file is below:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    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]
    </IfModule>
    # END WordPress

    And my ms-files.php is:

    [code moderated - please use the pastebin]

    Any ideas? Any help? Please? ?? I am set up to use subdomains not subfolders!

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Images not displaying in subsites, subdomains’ is closed to new replies.