WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. simbian
    Member
    Posted 3 years ago #

    Hello!

    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
        </Files>

    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