Sub-Domain WP-Admin not working
-
I have created a Mutli Site environment by using the Plugin Enable Multi Site.
I have created a * record to handle the subdomains within the DNS
I’m able to create new sites – also working fineHowever, when I would like to go to the dashboard of a subdomain site – I do get the following message:
Not Found
The requested URL /wp-admin/ was not found on this server.
Apache Server at reinigen.synergic.nl Port 80I have checked the user permissions – seems to be all correct.
Is there anyone that can point me to the right direction to solve this?
-
What’s in your .htaccess?
This is the current content of the HTACESS file
#Made Multi-Site with Multi-Site Enabler 1.5# RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] # uploaded files RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] RewriteRule . index.php [L]I missed the first time that this was using the Multisite enabler. I hate that thing, it acts up.
Go to /wp-admin/network/setup.php
Make SURE your .htaccess matches the one there, and check your wp-config.php for the lines mentioned. ALL the lines. They matter.
Thanks for the support. Your question related to the matches is not clear to me.
I have changed the .htaccess in the following way – based on doc MS Codex
#Made Multi-Site with Multi-Site Enabler 1.5# RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] # uploaded files RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [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]The network/setup.php contains the following info:
<?php /** * Network Setup administration panel. * * @package WordPress * @subpackage Multisite * @since 3.1.0 */ /** Load WordPress Administration Bootstrap */ require_once( './admin.php' ); if ( ! is_multisite() ) wp_die( __( 'Multisite support is not enabled.' ) ); require( '../network.php' );Looking forward to your response on this
That wasn’t what I meant… I was unclear, sorry. Go to http://yoursite.com/wp-admin/network/setup.php
ie VISIT the page π
OK – I have followed the directions:
‘Create a blogs.dir directory at /var/www/vhosts/synergic.nl/httpdocs/wp-content/blogs.dir. This directory is used to store uploaded media for your additional sites and must be writeable by the web server.’IT WAS ALREADY THERE
‘define( ‘MULTISITE’, true );
define( ‘SUBDOMAIN_INSTALL’, true );
$base = ‘/’;
define( ‘DOMAIN_CURRENT_SITE’, ‘synergic.nl’ );
define( ‘PATH_CURRENT_SITE’, ‘/’ );
define( ‘SITE_ID_CURRENT_SITE’, 1 );
define( ‘BLOG_ID_CURRENT_SITE’, 1 );’THESE LINE WERE PART OF CONFIG.PHP FILE. ONLY IN MY CASE IS “1” INSTEAD OF “TRUE”. I ASSUME THAT WILL BE THE SAME
‘#Made Multi-Site with Multi-Site Enabler 1.5#
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]# uploaded files
RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ – [L]RewriteRule . index.php [L]’
THE .HTACCESS CONTAINS ALSO THE RIGHT INFORMATION ….
SO WHAT ELSE COULD IT BE?
Please don’t type in all caps. It’s rude. I’m helping you as a free volunteer, and if you’re gonna be rude, I’m going to walk away.
I asked if you could verify everything was set up right. A simple ‘Yes, it looks the same’ would have been fine π
In your wp-config.php, can you check that this line is also there:
define('WP_ALLOW_MULTISITE', true);Also, make sure those Multisite lines are all above the line that says:
/* That's all, stop editing! Happy blogging. */Sorry, No attention at all to be rude to you, I just wanted to make a difference between the code copies and my responses. Will use the Code option next time
I have added that line to the config file, but when I add the line nothing is working.
I have tried this withdefine('WP_ALLOW_MULTISITE', true); and with define('WP_ALLOW_MULTISITE', 1);When I remove this line, I do get the side back.
Strange, I do hope you have another option my dear friend π
The config file has these details:
/* This site was made multi-site enabled by @link http://jgwebdevelopment.com */define ('MULTISITE', '1'); define ('SUBDOMAIN_INSTALL', '1'); define ('DOMAIN_CURRENT_SITE', 'synergic.nl'); define ('PATH_CURRENT_SITE', '/'); define ('SITE_ID_CURRENT_SITE', 1); define ('BLOG_ID_CURRENT_SITE', 1); $base = '/';I have tried to use your suggested line as a second line after the first define … but then the site will go up. I’m still not able to start the dashboard (404), and when I visit the site I do get the default page of the web server …
*sigh* Honestly, man, it’s probably something stupid that plugin did. Which is why you’ll see us tell people NOT to use it left, right and center. The true (vs 1) is bog standard WP, and I don’t know why the plugin version of it is forcing the 1, btu can only presume it’s because it’s playing games in your database :/
OK – so there is no need to change the 1 to True.
Is there anything you recommend to do or would it be the best way to start from scratch – reinstall WP
– activate WP manuallyLooking forward to hear from you
I would reinstall and activate Multisite manually. If you don’t have any content to use, that’s the easiest.
If you DO, then you’d have to uninstall Multisite, which is a little more complicated, but can be done.
The topic ‘Sub-Domain WP-Admin not working’ is closed to new replies.