Title: .htaccess(cannot access WordPress dashboard )
Last modified: August 31, 2016

---

# .htaccess(cannot access WordPress dashboard )

 *  Resolved [atex007](https://wordpress.org/support/users/atex007/)
 * (@atex007)
 * [10 years ago](https://wordpress.org/support/topic/htaccesscannot-access-wordpress-dashboard-1/)
 * Hi,
    AM having problem with my wordpress login. The problem is because i cant
   remember my htaccess password. To make it worses i cant access my wordpress dashboard,
   i can only ftp to the server. Now i cant view the webpage again, it always pop
   the login details Can someone please help me out

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

 *  [Clarion Technologies](https://wordpress.org/support/users/clarionwpdeveloper/)
 * (@clarionwpdeveloper)
 * [10 years ago](https://wordpress.org/support/topic/htaccesscannot-access-wordpress-dashboard-1/#post-7457668)
 * Hello atex007,
 * If you have protected you WordPress login using the .htaccess file can you please
   remove the old and add new protection.Follow the below link which will helps 
   you:
 * [https://codex.wordpress.org/Brute_Force_Attacks](https://codex.wordpress.org/Brute_Force_Attacks)
 * Thanks
 *  Thread Starter [atex007](https://wordpress.org/support/users/atex007/)
 * (@atex007)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/htaccesscannot-access-wordpress-dashboard-1/#post-7457825)
 * Thank you for your answer. When i tried to remove the old .htaccess file,got 
   an error message about SQL not matching.
    This is how i resolve the the problem
   I restored from the backupfile a day before the issue and i edit the .htaccess
   file from **## begin basic auth AuthName “the protected directory” AuthType Basic
   AuthUserFile “/usr/home/thest3/www/htdocs/wp-admin/.htpasswd” Require valid-user##
   end basic auth
 * to
    **# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase/
   RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond%{
   REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress
 * That was able to solve my problem

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

The topic ‘.htaccess(cannot access WordPress dashboard )’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [atex007](https://wordpress.org/support/users/atex007/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/htaccesscannot-access-wordpress-dashboard-1/#post-7457825)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
