• michaellawrence

    (@michaellawrence)


    I have a WordPress multisite that has a base here: https://thewlstorage.com/

    I have two subsites (not subdomain) as well.

    When I login to the admin at the site, both online and on my local installing (using the Local app), the login just takes me to a https://thewlstorage.com/404/ (or https://local-site.local/404)

    The two subsites seems to be logging in fine live, though locally, NONE of my sites, when I login (on Chrome) work, they all go to 404. On Safari, I am able to access my dashboard (locally and live).

    Here is my HTACCESS for local and live (using Apache)

    # BEGIN WordPress
    # The directives (lines) between "BEGIN WordPress" and "END WordPress" are
    # dynamically generated, and should only be modified via WordPress filters.
    # Any changes to the directives between these markers will be overwritten.
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    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]
    
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
    </IfModule>
    
    # END WordPress

    and my WP Config

    define( 'WP_DEBUG', true );
    define( 'WP_DEBUG_DISPLAY', false );
    define( 'WP_DEBUG_LOG', false );
    define( 'SCRIPT_DEBUG', true );
    
    define( 'WP_ALLOW_MULTISITE', true );
    define( 'MULTISITE', true );
    define( 'SUBDOMAIN_INSTALL', false );
    $base = '/';
    define( 'DOMAIN_CURRENT_SITE', 'white-label-storage-b2c.local' );
    define( 'PATH_CURRENT_SITE', '/' );
    define( 'SITE_ID_CURRENT_SITE', 1 );
    define( 'BLOG_ID_CURRENT_SITE', 1 );
    
    define( 'WP_ENVIRONMENT_TYPE', 'local' );
    
    /* domain mapping */
    
    define('COOKIE_DOMAIN', $_SERVER['HTTP_HOST'] );
    
    /* That's all, stop editing! Happy publishing. */
    
    /** Absolute path to the WordPress directory. */
    if ( ! defined( 'ABSPATH' ) ) {
    	define( 'ABSPATH', __DIR__ . '/' );
    }
    
    /** Sets up WordPress vars and included files. */
    require_once ABSPATH . 'wp-settings.php';
    

    It was working fine for weeks. I’ve changed nothing, touched nothing affecting site settings. Locally, I have my site URL for my subsites set to the local URL, live I have it set to the Live dot.coms for the subsites. It’s worked fine till just now.

    Any ideas?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter michaellawrence

    (@michaellawrence)

    Anyone? I need this solved, my clients and even myself can’t login to our sites. We removed the WP Hide Login plugin and that helped, but now when we login, it just loops back to the login page (instead of 404). But it only works on Safari for Mac.

    It sounds like there could be several issues at play here, especially since the problem is occurring both locally and on your live site. I would troubleshoot this step by step:

    1. .httaccess – It looks fine, but make sure the file permissions are correct and that there are no extra characters or spaces at the beginning or end of the file. Also, check rules: sometimes, plugins or manual edits can add rules that interfere with WordPress’s default behavior.
    2. Site(s) address: In your WordPress settings, go to Settings > General. Ensure that the WordPress Address (URL) and Site Address (URL) are correctly set to https://thewlstorage.com/ for your live site and https://local-site.local/ for your local site.
    3. Plugin/Theme Conflicts: Try deactivating all plugins and switching to a default WordPress theme like Twenty Twenty-One to see if the issue persists. If the problem resolves after deactivating plugins or switching themes, you can reactivate them one by one to identify the culprit.
    4. Clear Browser Cache, and try again with different browsers and incognito windows.
    5. Check server and provider error logs – Ask your hosting provider if not familiar with this step, for any clues.
    6. Check if any errors are logged in the debug.log file located in your wp-content directory. Any PHP errors or warnings could provide insights into what’s causing the issue.

    It’s hard to debug a very specific issue like this from our own setups, but I hope those steps work and you can identify the source. Please post your findings.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Logging into my multisite (base site or any) takes me to 404’ is closed to new replies.