WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Create Subdirectory Multisite Install Using Subdomain as Base/Root? (5 posts)

  1. jpmclaughlin
    Member
    Posted 2 years ago #

    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.

  2. 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.

  3. jpmclaughlin
    Member
    Posted 2 years ago #

    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).

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

  5. jpmclaughlin
    Member
    Posted 2 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.