• Hi,
    I am trying to figure out how to use multisite feature with not much success. I will use dummy site URLs below.

    Let me start with description of folders as provided by webhosting:

    • -root/www – > this is root of main site, where WP has been installed, support.info
    • root/subdoms/hu -> this is root for subdomain hu.suppport.info
    • root/subdoms/en -> this is root for subdomain en.support.info
    • My current .htaccess in root/www has this inside:

      
      RewriteEngine On
      RewriteBase /
      RewriteRule ^index\.php$ - [L]
      
      # add a trailing slash to /wp-admin
      RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
      
      RewriteCond %{REQUEST_FILENAME} -f [OR]
      RewriteCond %{REQUEST_FILENAME} -d
      RewriteRule ^ - [L]
      RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
      RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
      RewriteRule . index.php [L]

      wp-config in root/www has this:

      define('WP_ALLOW_MULTISITE', true);
      define('MULTISITE', true);
      define('SUBDOMAIN_INSTALL', true);
      define('DOMAIN_CURRENT_SITE', 'siapodpora.info');
      define('PATH_CURRENT_SITE', '/');
      define('SITE_ID_CURRENT_SITE', 1);
      define('BLOG_ID_CURRENT_SITE', 1);

      in root/subdoms/hu/.htaccess I have:

      RewriteEngine On
      RewriteBase /
      RewriteRule ^index\.php$ - [L]
      
      # add a trailing slash to /wp-admin
      RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
      
      RewriteCond %{REQUEST_FILENAME} -f [OR]
      RewriteCond %{REQUEST_FILENAME} -d
      RewriteRule ^ - [L]
      RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
      RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
      RewriteRule . index.php [L]

      in root/subdoms/hu I have index.php with some code – no WP related.

      When I try to open dashboard for any of the subdomains, I receive 500 Error. When opening site as normal browser, not trying to open dashboard, site reacts and index.php renders.

      Is there a way I could setup WP to work in this environment, without having WP installation in each of subdomains folders? For some reason hosting provider has it organized as this.

      Any help appreciated.

    • This topic was modified 4 years, 7 months ago by James Huff. Reason: moved to Networking WordPress since this is a multisite issue
Viewing 2 replies - 1 through 2 (of 2 total)
  • Did you install multisite?

    For just a few sites or subsites you might want to just go with a WordPress in each subdomain’s directory.

    I love multisite but the extra attention might not be worth it for simple sites. The overhead is just about the same except you’ll need a bit more storage for the extra WordPress instances.

    Hi abracjun,

    Your current setup suggests, you’ve got virtual host setup for main domain and each subdomains. You need to get your host to change setup as follows:

    – suppport.info – this is where your WordPress install will live
    – hu.suppport.info, en.suppport.info need to be set as aliases for support.info

    That way you will be able to run each site independently from one WP install.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Dashboard on multisite/subdomains not working’ is closed to new replies.