• Resolved eglivision

    (@eglivision)


    Hi there,

    I have a problem with multisite users. I have installed successfully two sites with different tlds. I have users with different userroles. Posts have blocks with visiblity to the corresponding user role.

    Now, I want to login on site xyz.com, there I can see posts with blocks corresponding to my user role. If I change to site abc.com (same multisite network) I want to see also posts with blocks corresponding to my user role. But I’m not logged in on the second site….

    my wp-config.php looks like below:

    define('WP_ALLOW_MULTISITE', true);
    define( 'MULTISITE', true );
    define( 'SUBDOMAIN_INSTALL', true );
    define( 'DOMAIN_CURRENT_SITE', 'xyz.com' );
    define( 'PATH_CURRENT_SITE', '/' );
    define( 'SITE_ID_CURRENT_SITE', 1 );
    define( 'BLOG_ID_CURRENT_SITE', 1 );

    define('ADMIN_COOKIE_PATH', '/');
    define('COOKIE_DOMAIN', '');
    define('COOKIEPATH', '');
    define('COOKIE_DOMAIN', $_SERVER['HTTP_HOST']);

    //Share cookies
    define('COOKIE_DOMAIN', 'xyz.com');
    define('COOKIEHASH', 'asdfqwerxcvnbvn234adsf');

    the .htaccess file looks like:

    # BEGIN WordPress
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]

    # add a trailing slash to /wp-admin
    RewriteCond %{REQUEST_URI} ^/([_0-9a-zA-Z-]+/)wp-admin$
    RewriteRule ^([_0-9a-zA-Z-]+/)wp-admin$ $1wp-admin/ [R=301,L]

    RewriteCond %{REQUEST_URI} !^/([_0-9a-zA-Z-]+/)wp-admin$
    RewriteRule ^wp-admin$ wp-admin/ [R=301,L]


    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]


    RewriteCond %{REQUEST_URI} ^/([_0-9a-zA-Z-]+/)(wp-(content|admin|includes).*)
    RewriteRule ^([_0-9a-zA-Z-]+/)(wp-(content|admin|includes).*) $2 [L]

    RewriteCond %{REQUEST_URI} !^/([_0-9a-zA-Z-]+/)(wp-(content|admin|includes).*)
    RewriteRule ^(wp-(content|admin|includes).*) $1 [L]


    RewriteCond %{REQUEST_URI} ^/([_0-9a-zA-Z-]+/)?(.*\.php)
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]

    RewriteCond %{REQUEST_URI} !^/([_0-9a-zA-Z-]+/)?(.*\.php)
    RewriteRule ^(.*\.php)$ $1 [L]


    RewriteCond %{REQUEST_URI} ^/foo/
    RewriteRule . foo/index.php [L]

    RewriteCond %{REQUEST_URI} !^/foo/
    RewriteRule . index.php [L]
    # END WordPress

    Are there any suggestions on what I need to do so that I can log in on the first site and also have access to the second site?

    thanks a lot

Viewing 1 replies (of 1 total)
  • Thread Starter eglivision

    (@eglivision)

    Hi there, I solved the problem with the plugin WP Remote Users Sync. It works perfectly.

    thanks anyway

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.