WordPress.org

Forums

404 when entering login data on new multisite (4 posts)

  1. Heichichi
    Member
    Posted 2 years ago #

    Hello!

    Ivé looked around quite a bit for a solution to my problem, which is very urgent. I noticed its a quite known problem but cant find a solution that works for me.

    The problem:
    1, Couldnt access wp-admin, solved by a workaround using wp-login instead. Not sure if this is related to nr 2.
    2, After adding the code provided by wordpress to the htcaccess and wp-config file it tells me to relog. When I enter the login info and hit enter I get a 404 not found.

    Information:
    website is hosted on a apache virtual server.
    the path is:
    /var/www/domainname/Thewordpressinstallation

    I used this for htcaccess:

    # BEGIN WordPress
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule . index.php [L]
    # END WordPress

    and this for wp-config:

    define( 'MULTISITE', true );
    define( 'SUBDOMAIN_INSTALL', true );
    $base = '/';
    define( 'DOMAIN_CURRENT_SITE', 'geneticcode.se' );
    define( 'PATH_CURRENT_SITE', '/' );
    define( 'SITE_ID_CURRENT_SITE', 1 );
    define( 'BLOG_ID_CURRENT_SITE', 1 );

    Solutions others have sniffed around:
    -Some sort of cookie that prevents/directs incorrectly after the activation and changes to htc/wp-config.
    -Flushing of DNS, clearing browser cookies.

    Please tell me if you need any other information.

    Cheers!

  2. Was wp-admin not working before you turned on Multisite?

  3. Heichichi
    Member
    Posted 2 years ago #

    Exactly. It (as alot of others here) redirected me to wp-login re authentication. But that dit not work as a login either, what I did to make it work was type:
    http://domain.com/wp-login.php?
    Which got me in.

    But after installing multisite I couldnt log in. By entering (Cant remember exactly since I cleared off cookies) wp-login.php?/network/
    I could enter the network dashboard and even create sites, but not access either sites dashboard.

  4. Okay, if wp-admin didn't work before you turned on Multisite, then this is not a 'multisite' issue, and really all you've done is made things worse :/

    You have to go back to non-Multisite and fix that before you should even consider adding more.

Topic Closed

This topic has been closed to new replies.

About this Topic