WordPress Multisite – is it possible to put the main site in a subdirectory?

I am creating a site that has different language versions and the requirement from the client is that all language versions are:

  1. A different site on a Multisite setup
  2. They all have address like this: mysite.com/en

Since the main site is in english, it’s address actually has to be mysite.com/en, not just mysite.com

Read More

If possible, I wouldn’t want to make a redirect from the main site to just a subsite that has the address mysite.com/en, but would like to use the actual mainsite with the subdirectory address?

Reasons: admin interface & database are cleaner + consistency.

Related posts

Leave a Reply

3 comments

  1. No, not without major refactoring and lots of custom rewrite rules. The thing just isn’t geared to do that without some restructuring.

    Is it possible? Sure.

    Would it be clean and easy? Not even a little bit.

  2. The easiest solution I have found and implemented is the one explained here.
    http://www.ab-weblog.com/en/wordpress-multisite-redirect-users-based-on-their-browser-language/

    I know time is ever so scarce so I’ll also outline the solution.
    1. create a folder in themes
    2. insert index.php with the first code found in the above link, changing languages appropriately
    3. create style.css and copy the second code found in the above link
    4. activate this dummy theme on your main site

    What happens now is that anyone going to site.com would be redirected to either site.com/en and site.com/ja depending on the language settings of the browser. Totally bypassing site.com

    Now I just habe to figure out how to do an “if else” statement and have the website default to the en

    Thank you