The MU forums have moved to WordPress.org

setup as subdomain but use Sub-directories (7 posts)

  1. grego3781
    Member
    Posted 15 years ago #

    Hello,

    I have Mu installed on a subdomain:

    http://subdomain.myurl.com

    I would like all additional blogs to be shown as a sub-directory:

    http://subdomain.myurl.com/site1
    http://subdomain.myurl.com/site2
    http://subdomain.myurl.com/site3

    I'm assuming that a .htaccess hack can make this happen. Does anyone know of the code to do this?

    TIA

  2. SteveAtty
    Member
    Posted 15 years ago #

    Why not set a subdomain in your apache config and your domain settting and then install WPMU in subdirectory mode.

    If you do that then you do not need to do anything odd with .htaccess

  3. grego3781
    Member
    Posted 15 years ago #

    Hi SteveAtty,

    I'm using GoDaddy as my host and setup a subdomain using the Admin Panel (subdomain.myurl.com pointing to myurl.com/subdomain ). I then installed MU in myurl.com/subdomain. I then configured wp-config as:

    ...
    define('VHOST', 'yes');
    $base = '/';
    define('DOMAIN_CURRENT_SITE', 'subdomain.myurl.com' );
    define('PATH_CURRENT_SITE', '/' );
    define('BLOGID_CURRENT_SITE', '1' );
    ...

    Is this what you mean?

    thanks!

  4. andrea_r
    Moderator
    Posted 15 years ago #

    I dunno what you're doing becasue if you just put the MU files in subdomain.myurl.com and run the install, choosing the subfolder option on the install screen, you'll get what you want.

    No hacks, no fiddling with anything.

    (I've actually just set up an install in this exact same format, and at godaddy.)

  5. grego3781
    Member
    Posted 15 years ago #

    Hi andrea_r,

    I'll replicate what you've done and see if that will work. Will get back to you tomorrow.

    Thanks

  6. Parmen
    Member
    Posted 15 years ago #

    Andrea, do you have problems with Google? There is a code in the bottom of your page

    google.load("language", "1"); var curstate = 0; var hasloaded = 0; function bnc_show_translated() { if (hasloaded == 0) { bnc_lang_callback(); ...

  7. andrea_r
    Moderator
    Posted 15 years ago #

    nah, it's another plugin I forgot to remove completely. Doesn't show in FF so I missed it.

About this Topic

  • Started 15 years ago by grego3781
  • Latest reply from andrea_r