Setting up a wordpress network with third level domains

I’ve been looking into setting up a WordPress network install. Everything has been going pretty smoothly until I get to the point where my desired domain layout doesn’t fit well.

I would like to have a layout as follows:

blog.*.stackexchange.com

so for example, I would like to have multiple sites in a network that look like:

blog.wordpress.stackexchange.com
blog.apple.stackexchange.com
blog.$site.stackexchange.com

I think I could get this working with some creative re-write rules, and manual DNS intervention but I’d rather have a setup where I can hand off the creation of everything but the DNS to someone else (we already have a process for automatically creating all sub-domains needed in DNS)

From my playing around and reading WP really wants the sites to be the next level domain, so in my above example, it wants the main WP blog to be at stackexchange.com and the network blogs to be at wordpress.stackexchange.com.

Is there any way to achieve my desired effect or should I just go the route of doing blog.stackexchange.com/$site ?

2 s
2

You could use the Domain Mapper plugin for this. Drawback being that you’d have manually configure each subblog.

Leave a Comment