Dashboard on multisite/subdomains not working
-
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.
- The topic ‘Dashboard on multisite/subdomains not working’ is closed to new replies.