• 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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • What is your local setup built with, eg Wamp, xxamp, etc?

    Is mod rewrite enabled on your local multisite?

    Thread Starter prokurator

    (@prokurator)

    I already mentioned that mod rewrite works just fine on single installed WP.
    Secondly, all I have is on Ubuntu 16.04

    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Multisite WP redirects don’t work properly’ is closed to new replies.