Subdomains
-
Good morning.
I have just installed my WordPress MU. At the beggining it was with subdirectories, I added a new site like domain.co/site1, and it was working. Then I changed it to subdomains (changed the wp-config and htaccess), created the site1.domain.co, and it didn’t worked. It shows in the My Sites tab, but when I try to reach for the Dashboard, an error page shows saying that “The server can not find the requested page: site1.domain.co/wp-admin. The site1.domain.co is listed in the subdomains at cPanel, and in the Advanced Zone Editor it shows with the site IP.My wp-config:
/* Multisite */
define( ‘WP_ALLOW_MULTISITE’, true );
define(‘MULTISITE’, true);
define(‘SUBDOMAIN_INSTALL’, true);
define(‘DOMAIN_CURRENT_SITE’, ‘sauva.co’);
define(‘PATH_CURRENT_SITE’, ‘/’);
define(‘SITE_ID_CURRENT_SITE’, 1);
define(‘BLOG_ID_CURRENT_SITE’, 1);
define(‘SUNRISE’, ‘on’);/* That’s all, stop editing! Happy blogging. */
my .htaccess
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).*) $1 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $1 [L]
RewriteRule . index.php [L]I really don’t know what I’m doing wrong here.
- The topic ‘Subdomains’ is closed to new replies.