• The images on our subsites (mapped subdomains) are showing as broken. This seems like a new thing? but I can’t point to anything I did to cause the change in file structure. Here’s what I see when I look at the sites

    A FILE IS ACTUALLY FOUND AT
    yourcrimesite.com/wp-content/blogs.dir/33/files/2015/06/MT4-300×242.jpg

    BUT IT IS LINKED ON THE SITE AS, AND IS NOT FOUND AT
    http://metrocrimestoppers.org/files/2015/06/MT4-300×242.jpg

    The upload path in the Sites settings is (for example)
    wp-content/blogs.dir/33/files

    And the fileupload URL
    http://metromaryland.yourcrimesite.com/files

    You know if I had changed these settings, I would tell you! But I didn’t.

    Was there a change in one of the more recent updates that changed the file paths? I’d love to learn what’s causing this, and also (obviously) to fix it.

Viewing 13 replies - 1 through 13 (of 13 total)
  • Thread Starter Angie Meeker

    (@ameeker)

    And the htaccess file

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [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]

    which has a file permission of 644

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Looks like you’re missing the files part.

    RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
    Thread Starter Angie Meeker

    (@ameeker)

    Thanks Jan,

    So the htaccess should read as

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [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 ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
    RewriteRule ^(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]
    Thread Starter Angie Meeker

    (@ameeker)

    That addition didn’t correct the issue.

    http://metrocrimestoppers.org/files/2015/06/MT4-300×242.jpg still isn’t found.

    Thread Starter Angie Meeker

    (@ameeker)

    Huh. The htaccess keeps changing back to 444. That won’t work.

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    *Looks*

    That looks correct. Do you see that when you visit this URL?

    http://yourcrimesite.com/wp-admin/network/setup.php

    Is the wp-content issue limited to just this subsite or all subsites ?

    Thread Starter Angie Meeker

    (@ameeker)

    all of the subsites.

    Thread Starter Angie Meeker

    (@ameeker)

    left my powercord at the conference center where we had wordcamp this weekend. I’m not ignoring this thread – just running out of battery to respond. I’ll be back here tmorrow AM after I get my cord. Thank you everyone.

    Thread Starter Angie Meeker

    (@ameeker)

    Thanks everyone – your comments helped me figure out what it was.

    Can you share your solution just in case someone else has similar issues in the future?

    Thread Starter Angie Meeker

    (@ameeker)

    Sure. It looks like it was a hack of some sort. Replacing the wp-admin and wp-includes with fresh copies allowed me to keep the 644 permission on the htaccess long enough to go in and change the contents of htaccess back to what they were supposed to be (/wp-admin/network/setup.php).

    Thanks. That was one of my suspicions but a scan with sucuri didn’t reveal anything.

    Thanks for updating the thread.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘What should be the path to images on subsites? Worked for years, seems broken’ is closed to new replies.