Title: Default .htaccess rules break basic auth
Last modified: August 15, 2017

---

# Default .htaccess rules break basic auth

 *  Resolved [kirrus](https://wordpress.org/support/users/kirrus/)
 * (@kirrus)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/default-htaccess-rules-break-basic-auth/)
 * The injected .htaccess rules includes;
 *     ```
       # Apache >= 2.3
       <IfModule mod_authz_core.c>
       <RequireAll>
       Require all Granted
       Require not env bad_bot
       </RequireAll>
       </IfModule>
       ```
   
 * This breaks previously configured basic http auth using
    `Require valid-user`

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Contributor [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/default-htaccess-rules-break-basic-auth/#post-9416543)
 * Hi, can you share which option you enabled in the plugin that creates the rule
   you mentioned above?
 * Thank you
 *  Thread Starter [kirrus](https://wordpress.org/support/users/kirrus/)
 * (@kirrus)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/default-htaccess-rules-break-basic-auth/#post-9418485)
 * Hi,
 * Not exactly, because I didn’t activate the option, a customer did. I’m just the
   webhost tech
 * The code is listed under section “# 6G:[USER AGENTS]”, if that helps?
 *  Plugin Contributor [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/default-htaccess-rules-break-basic-auth/#post-9419699)
 * Hi, can you disable the following option **Enable 6G Firewall Protection** under**
   Firewall**? This should fix your issue.
 * Or you could try to customize **Enable 6G Firewall Protection** and edit or remove
   the code you mentioned above. Then add the customized code into the following
   feature **Custom Rules** also located under **Firewall**.
 * Let me know how you go.
 * Regards
    -  This reply was modified 8 years, 9 months ago by [mbrsolution](https://wordpress.org/support/users/mbrsolution/).
 *  Plugin Contributor [wpsolutions](https://wordpress.org/support/users/wpsolutions/)
 * (@wpsolutions)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/default-htaccess-rules-break-basic-auth/#post-9419907)
 * If an Apache rule conflicts with your specific setup I recommend using the custom
   rules tab as suggested by mbrsolution. Simply turn off the rule causing your 
   issue and then make the required modifications in the custom rules feature.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Default .htaccess rules break basic auth’ is closed to new replies.

 * ![](https://ps.w.org/all-in-one-wp-security-and-firewall/assets/icon-256x256.
   png?rev=2798307)
 * [All-In-One Security (AIOS) – Security and Firewall](https://wordpress.org/plugins/all-in-one-wp-security-and-firewall/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/all-in-one-wp-security-and-firewall/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/)
 * [Active Topics](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [wpsolutions](https://wordpress.org/support/users/wpsolutions/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/default-htaccess-rules-break-basic-auth/#post-9419907)
 * Status: resolved