• Ok, so here’s an issue that I have. I had a regular WP site, with uploads folder setup for files.domain.com.

    Recently, we enabled multisite to have separate blogs on sub-domains. It seems like now all sub-domain blogs can’t upload. The file is uploaded, but its broken. The file link that media uploader provides for the broken file looks like this domain.com/files/YYYY/MM/image.jpg

    There’s a disconnect somewhere between sub-domain blogs and the main blog, because the main blog works just fine with files.domain.com

    I wanted to get some feedback and see if there’s a way to fix that. Changing upload settings to defaults is last resort, lots of images in files.domain.com for main blog.

    Any thoughts?

    Thanks,
    Viktor

    [No bumping, thank you.]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Two likely culprits.

    1) YOu didn’t correctly upgrade your .htaccess
    2) You don’t have allowoverride set to ALL on your server’s httpd.conf file.

    Remember, Multisite puts your media in /public_html/wp-content/blogs.dir/#/files/ (where # is the DB number allocated to your blog), except for the first site, which will still use /wp-content/uploads. HOWEVER for everyone going forward, WP uses domain.com/files/ as the URL.

    All that is magically handled by your .htaccess, so when that’s not working, it’s usually that you didn’t correct the .htaccess, or your server isn’t set up to handle the more complex rules.

    Thread Starter Viktor Nagornyy

    (@viktorix)

    That was quick, thanks a lot =)

    We are running nginx, so no htaccess. But, now we at least know what to look for and check server rules.

    Thread Starter Viktor Nagornyy

    (@viktorix)

    The order of rules was incorrect in nginx configuration, all fixed now.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Multisite uploads folder issue’ is closed to new replies.