Title: 404 error lockout
Last modified: August 21, 2016

---

# 404 error lockout

 *  [devadok](https://wordpress.org/support/users/devadok/)
 * (@devadok)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/404-error-lockout/)
 * 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://wordpress.org/plugins/better-wp-security/](https://wordpress.org/plugins/better-wp-security/)

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

 * ![](https://ps.w.org/better-wp-security/assets/icon.svg?rev=2980272)
 * [Solid Security – Password, Two Factor Authentication, and Brute Force Protection](https://wordpress.org/plugins/better-wp-security/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/better-wp-security/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/better-wp-security/)
 * [Active Topics](https://wordpress.org/support/plugin/better-wp-security/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/better-wp-security/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/better-wp-security/reviews/)

## Tags

 * [better security](https://wordpress.org/support/topic-tag/better-security/)
 * [Lockout](https://wordpress.org/support/topic-tag/lockout/)

 * 0 replies
 * 1 participant
 * Last reply from: [devadok](https://wordpress.org/support/users/devadok/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/404-error-lockout/)
 * Status: not resolved