• Hello,
    I try to run three sites with one wp instanllation.
    My problem is, that I have big trouble to login the new sites, if I have define('SUBDOMAIN_INSTALL', false);. Also there is no access to any site, except the main page of the second and third site.
    If I have define('SUBDOMAIN_INSTALL', true); I can access to the dashboard of the second and third site, but I am ether able to logout nor able to access with a new standard user.
    The wp-config.php looks like this

    define('WP_ALLOW_MULTISITE', true);
    define('MULTISITE', true);
    define('SUBDOMAIN_INSTALL', true);
    define('DOMAIN_CURRENT_SITE', 'www.firstdomain.de');
    define('PATH_CURRENT_SITE', '/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);

    I tried many alterations from the wp multisite instruction, but nothing helped. What should I do to run these sites by not forcing to switch between Multisite true and false? Thanks!

Viewing 15 replies - 1 through 15 (of 16 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    What error do you get?

    Have you deleted ALL of your cookies in your browser?

    Thread Starter Gamechanger

    (@gamechanger)

    Yes, I deleted all cookies and also tried it with different browsers.
    There is no special error message. It is just the case that I I have ether a redirect from any undersite when define('SUBDOMAIN_INSTALL', false);
    or having trouble with login when define('SUBDOMAIN_INSTALL', false);

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    There is no special error message.

    Is there ANY error message? ?? (And yes, if you get ANY error, it’s always a good idea to share).

    My problem is, that I have big trouble to login the new sites, if I have define(‘SUBDOMAIN_INSTALL’, false);

    What, exactly, is the trouble? That’s what we need to know.

    Thread Starter Gamechanger

    (@gamechanger)

    No, I don`t get any error message.
    I just cant login to the new site. Whats so difficult to understand?
    I hope anybody has a tip for me to solve that issue.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Because ‘can’t log in’ is a very bad description. Basically you’re not giving us anything to go on. Would you tell your doctor ‘It hurts’ without explaining? No. You can’t do that HERE if you expect to get any help.

    What, exactly, happens? Let me give you an example of a GOOD description:

    “I go to the login screen and enter my username and password, but the screen just refreshes without a message, not logging me in.”

    Does the login bar remain the correct site? Does it redirect you to your primary site? Did you update your .htaccess correctly?

    What EXACTLY happens when you ‘can’t login’? We’re not mind readers and we can’t see your site to try so you have to TELL US.

    Thread Starter Gamechanger

    (@gamechanger)

    If you mean “I go to the login screen and enter my username and password, but the screen just refreshes without a message, not logging me in”is a good description, then take this as a description what`s happening on my site, when I try to log in.

    I have read on the German WP forum that they solved this same issue (at the same hoster btw) by adding the www. on the “domain mapping” and dropping it on the preferences site under WP network. I dont know exactly what is meant by "domain mapping" in this case, but I did also drop the www. on the network preferences (except on the first domain) but this doesnt changed any.

    I also dont know whats the “correct” .htaccess. If I would know that, I could say this is not the problem. It just looks like this:

    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).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]

    Any advice!?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    The .htaccess you show is the correct one for Subfolders. So while you have define('SUBDOMAIN_INSTALL', false); set in your wp-config, you must use that one.

    If you mean “I go to the login screen and enter my username and password, but the screen just refreshes without a message, not logging me in”is a good description, then take this as a description what`s happening on my site, when I try to log in.

    This is called the WordPress redirect login loop. It happens when WP can’t create the right cookies on your domain.

    When you try to log in, take a good look at the URL in your address bar. Does it have the www in the URL still? I have a suspicion you’ve run into a pretty common mistake by declaring the www in your domain name in some places, but not in all.

    What happens when you go to firstdomain.de? Does it redirect you to https://www.firstdomain.de?

    In your database, under wp_blog, is the domain saved as https://www.firstdomain.de or just firstdomain.de?

    NOT using the www in your domain is preferable (in fact, when you activated WP you were warned to NOT use it), as it’s more compatible with Multisite.

    Thread Starter Gamechanger

    (@gamechanger)

    When casus cnaksus is to switch between define(‘SUBDOMAIN_INSTALL’, false); and define(‘SUBDOMAIN_INSTALL’, true);

    When there is define(‘SUBDOMAIN_INSTALL’, false); as you say has to be like this, then I CAN login, BUT I get permanently redirected to the homepage of my first site, when I try to reach a undersite of my 2ed-xx site.

    When there is define(‘SUBDOMAIN_INSTALL’, true); I can`t login and it indeed refreshes the login site without https://www., even when I put it in before.

    So I currently login via define(‘SUBDOMAIN_INSTALL’, false); to work with define(‘SUBDOMAIN_INSTALL’, true); – a total mess.

    So what is wrong here?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    We cannot do ANY diagnosis if you keep changing subdomain. Please leave it alone for now.

    While you have Subdomain install at FALSE (and please leave it there), does your site work with https://www.domain.com or no-www? This is VERY IMPORTANT.

    Does one redirect to the other? Do they BOTH work?

    Thread Starter Gamechanger

    (@gamechanger)

    Yes, it changes the domain, if I put www. before to without any prefix (at FF 20.0). So they both work.
    BUT, the second site page https://www.secondsite./xx redirects to the homepage of the first site https://www.firstsite.de

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Yes, it changes the domain, if I put www. before to without any prefix (at FF 20.0). So they both work.

    If you mean that https://www.firstdomain.de redirects to https://firstdomain.de then that’s a problem

    WordPress doesn’t like having BOTH you see. They can’t both work, one MUST be the default. So I’m trying to figure out what your default is.

    When you go to https://www.firstdomain.de/wp-login.php does the URL change to https://firstdomain.de/wp-login.php or does it stay the same?

    Can you possibly share your URLs with me so I don’t have to keep asking in different ways to try and cross our language barrier?

    Thread Starter Gamechanger

    (@gamechanger)

    When you go to https://www.firstdomain.de/wp-login.php does the URL change to https://firstdomain.de/wp-login.php or does it stay the same?

    No, it stays the same.

    The first domain is https://www.gadgetlife.de the second https://www.epicase.de

    But please mind that I usually (not while anwering your questions) keep
    define('SUBDOMAIN_INSTALL', true);
    Otherwise I can`t run the second site properly. So I keep the site
    define('SUBDOMAIN_INSTALL', false); between 5:oo to 6:00 pm CDT

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    The first domain is https://www.gadgetlife.de the second https://www.epicase.de

    Did the second domain work before you mapped it?

    Part of the method with troubleshooting is to remove as many possible variable as we can ??

    By the way, https://www.epicase.de/wp-login.php redirects me to https://epicase.de/wp-login.php – That’s exactly what I was talking about ?? Did you map both www and non-www domains? Which did you set as primary?

    Thread Starter Gamechanger

    (@gamechanger)

    By the way, https://www.epicase.de/wp-login.php redirects me to https://epicase.de/wp-login.php – That’s exactly what I was talking about ??

    King.

    Did you map both www and non-www domains? Which did you set as primary?

    I did answer this before. I do not know where to map domains. Can you please give more concrete advice, such as “open this or that file, change this or that function”?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    I do not know where to map domains.

    And this is why I am VERY confused.

    If you don’t know how to map domains, how did you get https://epicase.de/wp-login.php in the first place?

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Big issue with login’ is closed to new replies.