WordPress.org

Forums

Multisite subdirectory and alias (4 posts)

  1. djosh
    Member
    Posted 1 year ago #

    Hi
    I installed a multisite network base on a subdirectory (called "masterdir" in this example) and it works great!

    http://www.domain.com/masterdir/site1
    http://www.domain.com/masterdir/site2
    [...]

    I created an alias (called "analias" in this example) into the apache conf for the url leads to the same place :
    http://www.domain.com/analias/site1
    http://www.domain.com/analias/site2

    Apache conf:
    Alias ​​/analias /var/www/masterdir
    <Directory /var/www/masterdir>
    [...]
    </ Directory>

    All this working, css and first level menu are ok but I have a 404 error when I navigate through my pages. Is it possible to run an alias with a multisite installation ?

    thank you very much

  2. WordPress doesn't like aliases.

    What's the end goal with this?

  3. djosh
    Member
    Posted 1 year ago #

    Thanks Ipstenu

    The teachers researchers at my university will create automatically event websites on the multisite network.

    The subject of their sites will be different and I would like them to choose the URL they will transmit to their audience.

    If it's a conference : http://www.domain.com/conference/site1, if an exposition : http://www.domain.com/exposition/site1 ...

  4. And you can't have WP installed in domain.com root I take it....

    The easiest solution would be install wp at domain.com and use a MultiNetwork plugin to make two main sites 'conference' and 'exposition'. Then make all the subsites off of that.

    Obviously you could do that at domain.com/sites/ as your main WP instance, and have domain.com/sites/expo/ and domain.com/sites/conf/ and so on, with the sub-sites and subnetworks as before, but that adds an extra layer on.

    Past that, you get two separate Multisites :/

    I don't know how to reliably alias the subfolders, though. You'd just end up with both URLs working.

Topic Closed

This topic has been closed to new replies.

About this Topic