Multisite via Subdomain and Subdirectory

Hi there WPMUDEV

I don’t know how complex this might be as I’ve never done it before, hence I created a ticket instead asking in an online chat so that you may discuss it before committing to anything should it be needed as I know it to be possible but not very common as Multisite isn’t everybody’s favorite but I have stumbled upon it before, can’t recall exactly where so I can’t refer to any documentation, but here’s the request:

Can a domain run WordPress in both Subdomain and Subdirectory on the WPMUDEV hosting platform?

  • Kasia Swiderska
    • Support nomad

    Hello Seductful ,

    Can a domain run WordPress in both Subdomain and Subdirectory on the WPMUDEV hosting platform?

    Can you give me more information about this configuration? Do you wish to have both types of subsites in one multisite? So, for example, one will be mysubsite.mydomain.com and second subsite will be mydomain.com/myothersubsite?
    By default, multisite can’t be both types at the same time.

    However, you can have a subdirectory multisite and then map subdomains to the subsites with CNAME record (point CNAME to main site, map domain in a subsite and then WP will do the rest).

    kind regards,
    Kasia

  • André
    • André Bothma

    HI there WPMUDEV (Kasia)

    Correct, I’d like to be able to be able to create siteX.Seductful.xxx for registered bloggers and seductful.xxx/siteY for registered users/followers.

    I know that by default WordPress doesn’t allow it but as I mentioned I have come across it somewhere before, I just can’t recall where for reference purposes to see how it was done hence the question to the EXPERTS. :wink:

  • Patrick Freitas
    • FLS

    Hi Seductful

    Hope you are doing well.

    You can do what my teammate suggested.

    However, you can have a subdirectory multisite and then map subdomains to the subsites with CNAME record (point CNAME to main site, map domain in a subsite and then WP will do the rest).

    I created a similar environment.

    On our hosting, using a subdirectory multisite, added my subdomain on the hosting portal.

    [attachments are only viewable by logged-in members]

    On Cloudflare DNS ( You can use the domain provider too ) I pointed both records, I this case I used two A records.

    [attachments are only viewable by logged-in members]

    And one of my subsites on subdirectory multisite, I added this subdomain as the mapped domain.

    [attachments are only viewable by logged-in members]

    Let us know if you need any further help on this.
    Best Regards
    Patrick Freitas