• I have a WPMU install I’m putting together on AWS with Nginx. It’ll be hosting four websites, 3 of them run WordPress on the site root, but one needs it to be in the blog subdirectory. I’m using the plugin “WordPress MU Domain Mapping” to map the domains, which is working fine in all cases. To illustrate:

    https://www.site1.com -> WordPress on WPMU
    https://www.site2.com -> WordPress on WPMU
    https://www.site3.com -> WordPress on WPMU
    https://www.site4.com -> Custom website
    https://www.site4.com/blog -> WordPress on WPMU

    I tried going into sites, edit site, and modifying the site URL, but it didn’t work – it completely ignored it.

    I can’t work out how to do this, can anyone point me in the right direction? It’s easy in single site WordPress. I’d prefer to do it in WordPress because mapping in Nginx could be messy – difficult to determine what to send to WordPress, what to send to the custom website.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Bet Hannon

    (@bethannon1)

    Just to clarify: site4.com is a non-WP site, and you want to map site4.com/blog to a WP site that is a subsite in a multisite network. Right?

    I think this would be a lot easier with a subdomain (blog.site4.com), which you could map to a subsite of the network. I’m not sure it can be done with a subdirectory without having a single site install of WP at site4.com/blog, but you could try looking at creating a symlink of site4.com/blog to the network. I’ve only ever done symlinks with top level domain names, but it might work.

    Thread Starter commando

    (@commando)

    Yes, that’s right. Site4 is https://www.headphonereviews.org, it runs a custom written PHP on the domain root and the blog in the /blog subdirectory.

    Yes I guess I could move it to a subdomain, but that has SEO implications – it’s treated as a separate website by Google.

    A symlink is an interesting idea, but wonder if WPMU would respond… maybe. Is it possible to put the WordPress index.php or sunrise.php into a different directory and have it somehow work, even if it requires changes?

    I also wonder if I can do anything fancy with Nginx or similar.

    The reason I’ve gone to WPMU is to reduce the maintenance hassles – patching, upgrades, backups, etc. This is my simplest blog install though, so if one has to be separate this is the easiest one.

    Moderator Bet Hannon

    (@bethannon1)

    If the updates & maintenance are your concern, I think I would really think about just setting up Infinite WP on separate single-site installs… Frankly, that’s a lot less work.

    Thread Starter commando

    (@commando)

    Yeah I know it’d be easier, and that’s by backup plan, but I’d like to go for technical elegance. If I have to do something manual each time WPMU is updated that would count out elegance.

    I’ve spent a few weeks (on and off, but a lot on) moving four blogs to a new AWS server with nginx, WPMU, and I’ve written a huge comprehensive guide which I’ll release when it’s ready. So I don’t mind spending a bit of time to work this out for the guide.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WPMU: put one domains blog into blog subdirectory’ is closed to new replies.