The MU forums have moved to WordPress.org

uk.sub.domain.com uk.sub1.domain.com (2 posts)

  1. honewatson
    Member
    Posted 13 years ago #

    I would like to be able to create blogs with another dot in the sub domain. Basically a dot in the username.

    So the main installation would be .domain.com and I could create sub domains like:

    uk.sub.domain.com
    uk.sub1.domain.com
    au.sub.domain.com
    au.sub1.domain.com
    ca.sub.domain.com
    ca.sub1.domain.com

    Without using a multisite install plugin, and without using the domain mapping plugin, is this feasible?

  2. honewatson
    Member
    Posted 13 years ago #

    As a straight out hack I made these changes to wpmu-functions.php that got the above working in 2.7 Rc1 trunk.

    Change lines 882 and 995:

    #preg_match( "/[a-z0-9]+/", $blogname, $maybe ); (from)
    preg_match( "/[a-z0-9\.]+/", $blogname, $maybe ); (to)

About this Topic

  • Started 13 years ago by honewatson
  • Latest reply from honewatson