• Hi guys,

    We run a couple of semi-big sites using WordPress and our next step is to use multisite for one of them (or maybe all). I’m completely new to multisite but setting everyting up was pretty easy, however I ran into one little problem. For some subdomains, but I’ll start with one, I want to disable the use of /sites/(id)/ in the media URL.

    The situation
    In the network the main site and a subsite (should) act as sandboxes and (should) get their media from the live sites on other servers with the cdn function of W3C Total Cache. I’ve exported the databases with phpmyadmin from the live sites and imported them into the multisites.

    So this is where I’m at now:
    Mainsite – media from https://*livesite1*/wp-content/uploads/
    Subsite1 – media from *server*/wp-content/uploads/sites/2/
    Subsite2 – media from https://*livesite2*/wp-content/uploads/ instead of https://*livesite2*/sites/3/wp-content/uploads/

    One tricky part is that I’m currently doing this on a shared webhosting account we had lying around (live sites are on VPS) on IIS with iirf.

    Thanks!

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

    (@ipstenu)

    ?????? Advisor and Activist

    Eerrrr. You know, it’s funny, that’s what we moved away from.

    You’ll want to look into ms-files.php and how it was setup to re-create that.

    Thread Starter Jacquesdancona

    (@jacquesdancona)

    Thanks Mika, I’ll look into it. I know it’s not something a normal user would want but a lot of gigabytes are involved.

    In your first multisite e-book you wrote No plugin currently exists that permits this, and it’s out of the scope of Multisite. about sites in a network using the same library. Is this still not possible? Thanks for writing them by the way ??

    If I find a solution I’ll post it here.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Well… wait. Are you saying you want to share all the media all the time?

    I think there is one plugin someone came up with: https://www.ads-software.com/extend/plugins/network-shared-media/

    I don’t actually know anyone who’s used it, and when I glanced at the code, it seemed a little CPU intensive for a large site.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Media url for some subdomain without /sites/(id)/’ is closed to new replies.