Title: htaccess and wp-comments-post.php
Last modified: August 19, 2016

---

# htaccess and wp-comments-post.php

 *  [miccom](https://wordpress.org/support/users/miccom/)
 * (@miccom)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/htaccess-and-wp-comments-postphp/)
 * Hello!
 * I protect my wp-admin directory with a .htaccess-file, so far so good, but when
   an user makes a mistake while creating a comment, WP opens wp-comments-post.php
   and requires username and password for wp-admin. Any idea how I can keep up the
   protection, without an user-authorization?

Viewing 1 replies (of 1 total)

 *  Thread Starter [miccom](https://wordpress.org/support/users/miccom/)
 * (@miccom)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/htaccess-and-wp-comments-postphp/#post-750511)
 * I found a solution, the Problem is, that the error messages want to access files
   from /wp-admin/css and /wp-admin/images so I removed the auth-access only for
   this to directories and now, users can get an error message without an auth. 
   🙂

Viewing 1 replies (of 1 total)

The topic ‘htaccess and wp-comments-post.php’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [miccom](https://wordpress.org/support/users/miccom/)
 * Last activity: [17 years, 11 months ago](https://wordpress.org/support/topic/htaccess-and-wp-comments-postphp/#post-750511)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
