Title: Default .htaccess rules break basic auth
Last modified: June 14, 2018

---

# Default .htaccess rules break basic auth

 *  Resolved [mladenb](https://wordpress.org/support/users/mladenb/)
 * (@mladenb)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/default-htaccess-rules-break-basic-auth-2/)
 * The follow-up from this issue: [https://wordpress.org/support/topic/default-htaccess-rules-break-basic-auth/](https://wordpress.org/support/topic/default-htaccess-rules-break-basic-auth/)
 * I also encountered this issue, and the problem was in the `Require all Granted`
   line, in combination with the Basic Authentication configured like:
 *     ```
       AuthType Basic
       AuthName Documents
       AuthBasicProvider file
       AuthUserFile "/usr/local/apache/passwd/passwords"
       Require valid-user
       ```
   
 * `Require all Granted` grants access to everybody uncoditionally, while `Require
   valid-user` grants access to granted users only.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdefault-htaccess-rules-break-basic-auth-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/default-htaccess-rules-break-basic-auth-2/#post-10401549)
 * Hi, did you test the **Custom Rules** as suggested in the support thread URL 
   you shared above?
 * Regards
    -  This reply was modified 7 years, 11 months ago by [mbrsolution](https://wordpress.org/support/users/mbrsolution/).

Viewing 1 replies (of 1 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/)

## Tags

 * [auth](https://wordpress.org/support/topic-tag/auth/)
 * [require()](https://wordpress.org/support/topic-tag/require/)

 * 1 reply
 * 2 participants
 * Last reply from: [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * Last activity: [7 years, 11 months ago](https://wordpress.org/support/topic/default-htaccess-rules-break-basic-auth-2/#post-10401549)
 * Status: resolved