• Hi,

    I’m using a WordPress multisite installation and I’ve got some 404 error problems which lead me to lockout frequently.

    Here are the useful information to reproduce the problem:
    1- My “main blog/site” is installed in root path ‘/mainsite’
    2- My second “blog/site” is installed in path ‘/mainsite/site01’
    3- When accessing admin pages, the generated script URL was /mainsite/site01/wp-content/plugins/better-wp-security/modules/free/strong-passwords/js/strong-passwords.js?ver=4030
    4- The correct URL should be /mainsite/wp-content/plugins/better-wp-security/modules/free/strong-passwords/js/strong-passwords.js?ver=4030
    Without the current site path.

    It was causing lockouts, so I changed the function get_module_path in file class-itsec-lib.php to:

    $module_path = plugin_dir_url($file);
    if (force_ssl_admin()) {
    	$module_path = str_replace('http', 'https', $module_path);
    }
    return $module_path;

    Now everything is working perfectly.

    https://www.ads-software.com/plugins/better-wp-security/

  • The topic ‘404 error lockout’ is closed to new replies.