[resolved] Why can't a WordPress network (multisite) in it's own folder use subdomains? (3 posts)

  1. DaveE
    Posted 3 years ago #

    If I'm setting up a brand new multisite installation with WordPress in it's own folder (say /wp/) why can't I configure the network to use subdomains instead of subfolders?

    Currently, if I try to setup the network with the WordPress core in it's own folder I'm not allowed to choose between a subdomain-based or sub-folder based network. I must use sub-folders.

    What are the technical reasons for this? I've scoured trac and Google for an answer to this question with no luck. A more detailed explanation than what is provided on http://codex.wordpress.org/Before_You_Create_A_Network or http://codex.wordpress.org/Create_A_Network would be greatly appreciated.


  2. Are you running WordPress in it's own folder as in it's installed in domain.com/wp and using domain.com as the URL, or do you mean it's installed in AND runs as domain.com/wp?

    The former can use subdomains, the latter cannot.

    I haven't bothered to deep dive into it, but my guess would be that it's due to how WP parses the subdomain, and everything would be sub.domain.com/wp

  3. DaveE
    Posted 3 years ago #

    Hi Ipstenu,

    I mean the former and actually figured this out thanks in part to your response. It was a simple oversight.

    I setup a clean install of WordPress using Mark Jaquith's WordPress Skeleton which places WordPress's core files at domain.com/wp/. However, when trying to run install.php, WordPress chokes on it's own redirects in this senario (maybe a bug report for another day).

    To get around that, I manually typed in the correct path to install.php: domain.com/wp/wp-admin/network.php. By doing this, WordPress automatically set the home URL to domain.com/wp instead of just domain.com. (Doh!) By changing the site's home URL to domain.com, I am now able to choose a subdomain or subfolder installation when setting up the multisite.

    Thanks for your help and getting me pointed down the right track. It's much appreciated!

Topic Closed

This topic has been closed to new replies.

About this Topic