htaccess single file protection doesn't work (1 post)

  1. simbian
    Posted 5 years ago #


    I want to protect the login page of my WordPress blog using Apache.

    According to http://www.askapache.com/htaccess/apache-authentication-in-htaccess.html this is the code i put on my .htaccess placed on the root of my website:

    <Files wp-login.php>
        Order deny,allow
        Deny from all
        AuthType Basic
        AuthName "bliah blah"
        AuthUserFile /home/mhd/www.digitalking.it/htdocs/protlogin/.htpasswd
        Require valid-user

    Then when i visit http://www.digitalking.it/wp-login.php it simple show a page of my web hosting http://img191.imageshack.us/img191/7165/loginee.jpg instead of prompting for authentication and then go to login page if successfull.

Topic Closed

This topic has been closed to new replies.

About this Topic