WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Multisite uploads folder issue (4 posts)

  1. Viktor Nagornyy
    Member
    Posted 2 years ago #

    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.]

  2. 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.

  3. Viktor Nagornyy
    Member
    Posted 2 years ago #

    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.

  4. Viktor Nagornyy
    Member
    Posted 2 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic