The MU forums have moved to WordPress.org

wpmu 1.3 & Multi-Site-Manager with same domain issue (3 posts)

  1. new-net
    Member
    Posted 16 years ago #

    Hello everyone, i've decided to migrate two wpmu installs to an unique one using multi-site.

    But doing this, i want to keep the old url structure i had:

    http://www.domain.ltd/en/blogname
    http://www.domain.ltd/fr/blogname
    http://www.domain.ltd/de/blogname

    each language was a standalone wpmu install, i wish to regroup them around one unique install using multi-site.

    Here is my setup:

    Env: Apache2 / PHP5 / FBSD / wpmu 1.3 / multi-site-manager 004

    Main site : hub.domain.ltd, has a ServerAlias of *.hub.domain.ltd, and of course a wildcard DNS Alias.
    wpmu is installed in subdomain mode for this "hub" site.

    Blog1 url : http://www.domain.ltd/en/ ; subdir mode

    Blog2 url : http://www.domain.ltd/fr/ ; subdir mode

    BlogN url : http://www.domain.ltd/N/ ; subdir mode

    ...

    As you can see, my goal is to use the same domain all the way, adding the language, than the blogname to form subdirs urls

    So, in the Site admin section, i just create new sites with :

    Sitename : English blogs
    Domain : http://www.domain.ltd
    Path : /en
    Clone: All from hub.domain.ltd

    Sitename : French blogs
    Domain : http://www.domain.ltd
    Path : /fr
    Clone: All from hub.domain.ltd

    Etc.

    Problem :
    When i try to access one of the multi-site create blogs i get :

    No WPMU site defined on this host. If you are the owner of this site, please check Debugging WPMU for further assistance.

    Now, if i switch the Path to "/" for one of these sites, than, i can access the domain GUI, but, accessing the domain thrugh http://www.domain.ltd/<lang>/ produces a 404..

    In the other hand, if i create a new site, directly using a path of "/", things seem to work fine ..

    The issue is that this would force me to use "<lang>.domain.ltd" kind of urls .. thus breaking all my permalinks :/

    Any ideas ?

  2. new-net
    Member
    Posted 16 years ago #

    IT WORKS !
    -edit almost works .. see next post

    Actually, i found out why it didn't work:
    My conception of the setup regarding the filesystem was wrong.

    Mostly because i couldn't find any simple readme or install docs for the plugin .. and got fedup of old forum threads that google throws back.

    But, after the n'th search for a documentation on this plugin, i miraculously found this post that explains it all : http://comox.textdrive.com/pipermail/wpmu-trac/2007-October/000934.html

    Finaly here is how i made it work:

    Create a shell/user/whatever and it's homedir in :
    /home/user

    Create the main wpmu install docroot :
    mkdir -p /home/user/hub/docs

    Create an apache vhost with *.domain.ltd ServerAlias

    Create the fake docroot that will be used by all http://blogs.domain.ltd/<*> :
    mkdir -p /home/user/blogs/docs

    Create the matching vhost (no ServerAlias needed)

    Than, simply symblink your main wpmu install /home/user/hub/docs to the fake documentroot we just created /home/user/blogs/docs/<LANG> (in my case <LANG> = en, fr, de, etc .. but could be anything else):
    ln -s /home/user/hub/docs /home/user/blogs/docs/en
    ln -s /home/user/hub/docs /home/user/blogs/docs/fr

    Final step, when creating the site :

    Sitename: our english blogs
    Domain: blogs.domain.ltd
    Path: /en/
    Clone: (works whatever you select)

    Sitename: our french blogs
    Domain: blogs.domain.ltd
    Path: /fr/
    Clone: (works whatever you select)

    !! Beware, you must add a trailling "/" to Path, otherwise it won't work !!

  3. new-net
    Member
    Posted 16 years ago #

    So...

    It appears going to http://blogs.domain.ltd/en/ or http://blogs.domain.ltd/fr/ leads to the same and only 1st created site (/en/ in my case) ..

    Also, in the admin section, i can only switch from "hub" to "english blogs" from the top selectbox .. clicking any other refreshes the site to the "english blogs"..

    Whatever 'virtual' site i add on the domain, i get redirected to the first 'virtual' site created ..

    Now why is this happening .. :?

    Anyone ?

About this Topic