Title: .htaccess protected wp-admin
Last modified: August 19, 2016

---

# .htaccess protected wp-admin

 *  Resolved [desean](https://wordpress.org/support/users/desean/)
 * (@desean)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/htaccess-protected-wp-admin/)
 * hi,
 * i have protected my wp-admin folder using HTTP Auth via .htaccess. My question
   is this:
 * When i enter **[http://www.mydomain.com/wp-admin/](http://www.mydomain.com/wp-admin/)**,
   a 401 error just show without asking me to enter the username and password as
   defined in the .htpasswd
 * But if i enter **[http://www.mydomain.com/wp-admin/index.php](http://www.mydomain.com/wp-admin/index.php)**,
   then everything works fine. just as it was supposed to work.
 * how can i make **[http://www.mydomain.com/wp-admin/](http://www.mydomain.com/wp-admin/)**
   behave the same way as **[http://www.mydomain.com/wp-admin/index.php](http://www.mydomain.com/wp-admin/index.php)**?

Viewing 1 replies (of 1 total)

 *  Thread Starter [desean](https://wordpress.org/support/users/desean/)
 * (@desean)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/htaccess-protected-wp-admin/#post-845496)
 * my issue is resolved now. instead of creating the .htaccess file myself, i make
   use of the AA Password Protect found at:
 * [http://www.askapache.com/wordpress/htaccess-password-protect.html](http://www.askapache.com/wordpress/htaccess-password-protect.html)
   
   [http://www.askapache.com/wordpress/new-version-of-password-protection-plugin.html](http://www.askapache.com/wordpress/new-version-of-password-protection-plugin.html)
   [http://www.askapache.com/htaccess/htaccess-plugin-blocks-spam-hackers-and-password-protects-blog.html](http://www.askapache.com/htaccess/htaccess-plugin-blocks-spam-hackers-and-password-protects-blog.html)
 * p.s. they are all the same thing. the last 2 links only add more info

Viewing 1 replies (of 1 total)

The topic ‘.htaccess protected wp-admin’ is closed to new replies.

## Tags

 * [htaccess](https://wordpress.org/support/topic-tag/htaccess/)
 * [mod_rewrite](https://wordpress.org/support/topic-tag/mod_rewrite/)
 * [redirect](https://wordpress.org/support/topic-tag/redirect/)
 * [wp-admin](https://wordpress.org/support/topic-tag/wp-admin/)

 * 1 reply
 * 1 participant
 * Last reply from: [desean](https://wordpress.org/support/users/desean/)
 * Last activity: [17 years, 9 months ago](https://wordpress.org/support/topic/htaccess-protected-wp-admin/#post-845496)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
