The MU forums have moved to WordPress.org

Mix subdomains and subdirectories (4 posts)

  1. chmac
    Member
    Posted 17 years ago #

    G'day,

    We're looking to add WPMU to an existing application (SmartHippo). So the current url for the existing app is http://www.smarthippo.com/

    We'd like to give *some* users blogs with subdomains, some with sub directories. For example:
    http://username.smarthippo.com/
    http://www.smarthipo.com/blogs/username2/

    I've figured out how to do the subdomain part, without interfering with our main site. WPMU will be installed at blogs.smarthippo.com with a VirtualHost ServerAlias of *.smarthippo.com and the site is configured as domain = smarthippo.com and path = /. This works ok, except if the blog doesn't exist it redirects to smarthippo.com/wp-signup.php which doesn't exist, but I can solve that.

    My question is, what additional site would I need to add in order to get http://www.smarthippo.com/blogs/ setup, and would that work? Would I need to install a second WPMU instance?

    Any tips / suggestions would be much appreciated.

    Cheers - Callum.

  2. andrea_r
    Moderator
    Posted 17 years ago #

    Yep, you'd need two installs.

  3. chmac
    Member
    Posted 17 years ago #

    You're right, it's either two-installs or only subdomains or subdirectories, they can't easily be mixed.

  4. Josey-Wales
    Member
    Posted 16 years ago #

    can anyone expand on how to do the sub domain part with out ending up with user.main.mysite.com, just main.mysite.com and user.mysite.com

    Does the main install have to be in the root? How do you work around this with .htaccess?

    Thanks

About this Topic

  • Started 17 years ago by chmac
  • Latest reply from Josey-Wales