• Hello people,

    Recentlty i installed the WP Security scan and it reported that the .htaccess does not exist in wp_admin. So, i added one. Later when i tried accessing anything in my control panel, it started asking me for a username and password.I tried logging in but, it does not accept it! I know something went wrong somewhere.

    Info:
    The .htaccess file contained:

    AuthName “Restricted Area”
    AuthType Basic
    AuthUserFile /home/glk616/public_html/example/.htpasswd
    AuthGroupFile /dev/null
    require valid-user

    Is there a way to solve this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    Did you create an .htpasswd file at that location?

    If not, then you did it wrong. Remove the .htaccess and you can login again normally.

    Thread Starter raj_agrawal

    (@raj_agrawal)

    No i did not create the .htpasswd file but how can i delete it if its asking the password for everything? i mean everything is locked!

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    … How did you create the .htaccess file? I would expect that you could just FTP into the site and remove the file that way.

    Thread Starter raj_agrawal

    (@raj_agrawal)

    I just contacted the support guys and they fixed it up. Thanks for your help.

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

The topic ‘Control panel locked after installing .htaccess’ is closed to new replies.