Support » Networking WordPress » Creating Subdirectory within Multisite Domains

  • I have a WordPress Multisite installation that is configured using subdomains. So, location1.company.com, location2.company.com etc.

    Now, location1 wants to install another non WordPress application into a subdirectory like so:

    location1.company.com/some-php-app

    How do I install this application in that directory when that subdomain does not exist on my server? And when I do create it, won’t it effectively kill the Mulitisite created subdomain?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    Lead Plugin Wrangler

    If you do it traditionally, yes.

    What kind of app is it? There are some work arounds.

    I don’t know the details about the application itself. They have asked if it is possible. I think it’s some sort of a custom sales application that is written in php. It’s not related to WordPress at all and there are no plugins or anything for it.

    What is the workaround? I just want to let them know whether it is possible or not and how easily it can be done.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    Lead Plugin Wrangler

    Depending on the app, you MAY be able to just put it in the ‘folder’ off the main site.

    See if you make a folder called ‘foobar’ and put it in the same level as your wp-config, then you’ll have it accessable from all sites.

    http://example.com/foobar
    http://location1.example.com/foobar

    And so on.

    So you can actually use location1.example.com/someapp/ as the defined location. If the app doesn’t need to know it’s real URL and can work relative, it’s much easier. If it HAS to know it’s real URL, I’m pretty sure it’ll still work.

    Now obviously that means every site would work — location2.example.com/someapp would be a valid URL. So if that’s an issue, you’d want to put in a .htaccess redirect in that someapp folder to say ‘If you didn’t come here from location1.example.com, redirect to ….’

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Creating Subdirectory within Multisite Domains’ is closed to new replies.