Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter sbarraud

    (@sbarraud)

    yes… sorry about that

    Thread Starter sbarraud

    (@sbarraud)

    Thanks guys!

    It seems that it works with the latest version of WordPress without doing anything special.

    For interested people, here is what I did:

    – Install wordpress with http://www.mydomain.com
    – Enable multisite define('WP_ALLOW_MULTISITE', true);
    – Create network (it’s written that you should replace your siteurl by mydomain.com but I haven’t because I want to keep the “www”).
    – Add the config and htaccess:

    define('MULTISITE', true);
    define('SUBDOMAIN_INSTALL', true);
    define('DOMAIN_CURRENT_SITE', 'www.mydomain.com');
    define('PATH_CURRENT_SITE', '/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);
    RewriteEngine On
    RewriteBase /
    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).*) $1 [L]
    RewriteRule ^(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]

    – Create new site with mynewsite.mydomain.com (the domain doesn’t have the www anymore)

    Thanks again anyway 🙂

    Thread Starter sbarraud

    (@sbarraud)

    In most cases but not in mine :/

    The users are user for each website. So this is definitely a limitation of the plugin. I will work on that trying to remove all cookies on each mapped domains when a log out process happens.

    Anyway, thank you for your help.

    PS. BTW you are using $wpdb->escape which is deprecated since 3.6

    Thread Starter sbarraud

    (@sbarraud)

    I’m not sure to understand but I would say the main site domain.

    Ex.
    main.mydomain.com (network, the main site to manage all users, login)
    site2.mydomain.com
    site3.mydomain.com

    If I’m logging out of the main.mydomain.com (main.mydomain.com/wp-login.php?action=logout) and then go to site2.mydomain.com, the cookie is still there so I’ve the admin bar. site2.main.mydomain.com is updated but not the mapped domain.

    If I’m logging out of the site2.mydomain.com, I’m redirected to site2.main.mydomain.com/wp-login.php?loggedout=true which is already strange. Then I’m logged out main.mydomain.com, site2.mydomain.com but not of site3.mydomain.com (site3.main.mydomain.com would be up to date).

    I hope, this is clear enough 🙂

    Thanks in advance for your help

Viewing 4 replies - 1 through 4 (of 4 total)