• Resolved jpmclaughlin

    (@jpmclaughlin)


    Is this even possible?

    I have a subdomain ( clients.mysite.com, for example ) that I’ve tried setting up a Multisite subdirectory installation for. Ideally, I’d like clients.mysite.com/site1 etc. to work.

    Everything seems to work fine when I view the base site and the sub-sites, except that calls such as get_stylesheet_directory_uri() from themes used for sites add the site to the path: mysite.com/clients/SUBSITE/wp-content/themes/…

    According to http://codex.wordpress.org/Create_A_Network you’re not supposed to give WordPress its own directory. WordPress is installed in the mysite.com/clients folder. Is that the problem? You just can’t/shouldn’t use a subdomain as the root for a Multisite install?

    I guess I can purchase a separate domain such as mysiteclients.com and point it to the directory. I’m just trying to avoid additional domain and hosting costs.

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

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    So long as you want the URLs to be clients.mysite.com/site1 etc then just install WordPress as clients.mysite.com and you’re fine.

    What we mean is don’t try to install WordPress in mysite.com/wordpress and then think you can run it as mysite.com.

    Thread Starter jpmclaughlin

    (@jpmclaughlin)

    Okay, well the installation worked fine. Some of my plugins don’t seem to work quite right yet, but hopefully that will be easy enough to figure out.

    Thanks for confirming that I wasn’t attempting the impossible (or at least the idiotic).

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Not all plugins work, though most do. If they fail when network activated, try it per-site.

    Thread Starter jpmclaughlin

    (@jpmclaughlin)

    Actually, turns out everything was working fine. I had made two simple errors that made me think the whole setup was wrong. I had mistyped the filename for my logo image and I forgot to make changes to the setup page for a plugin. Once I fixed that, everything works great.

    A word to others who may be new to debugging in the WordPress Multisite environment…. When you use WordPress calls such as get_stylesheet_uri(), the paths to theme assets may look wrong, but everything should show up as expected. For instance, in my case, a path to an image would read clients.mysite.com/SITE1/wp-content/themes/site1/images/someimage.png rather than the expected clients.mysite.com/wp-content/themes/site1/someimage.png.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Create Subdirectory Multisite Install Using Subdomain as Base/Root?’ is closed to new replies.