Multisite WP redirects don’t work properly
-
I just installed new version of WP 4.8 and set it up as multisite. I have no problems to access wp-admin on all sub-domains I set. I have no problems to create/edit posts/pages. However when I try to access post/page I’m getting 404 page.
After I reinstall everything once again, I started to get even more bizarre problem. When trying to go to admin dashboard of subsite I was redirected back to login screen and can’t access dashboard for subsites at all with main admin username/password.
And last but not least. This problems do not exist if I do the same installation on the live server. All works as expected. And it does not exist for single WP installation on local machine. mod rewrite is installed and works properly. I have single WordPress installation along side with multi one and single works just fine and properly displays posts and pages.
However I need this to make working on my local machine which is not connected to Internet.
Once again, I wanted WP to work with subsites as sub-domain (haha.mysite.com).
Here is my .htaccess:
RewriteEngine On
RewriteBase /mybase/
RewriteRule ^index\.php$ – [L]# add a trailing slash to /wp-admin
RewriteRule ^wp-admin$ wp-admin/ [R=301,L]RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ – [L]
RewriteRule ^(wp-(content|admin|includes).*) $2 [L]
RewriteRule ^(.*\.php)$ $2 [L]
RewriteRule . index.php [L]And in wp-config.php I have following:
define(‘WP_ALLOW_MULTISITE’, true);
define(‘MULTISITE’, true);
define(‘SUBDOMAIN_INSTALL’, true);
define(‘DOMAIN_CURRENT_SITE’, ‘localhost.com’);
define(PATH_CURRENT_SITE’, ‘/mybase/’);
define(‘SITE_ID_CURRENT_SITE’, 1);
define(‘BLOG_ID_CURRENT_SITE’);Thank you for help.
- The topic ‘Multisite WP redirects don’t work properly’ is closed to new replies.