• Hi everyone,
    I have a little problem with my .htaccess configuration.
    I put the following code in my .htaccess file

    <Files wp-login.php>
    	Order Allow,Deny
    	Deny from all
    	Allow from [my_static_ip]
    </Files>

    because I would like to show the login page of the site only from my IP. Login page now returns Error 403 also from allowed IP address.

    Any suggestions?

Viewing 1 replies (of 1 total)
  • Moderator t-p

    (@t-p)

    Try:

    #protect wp-login.php
    <Files wp-login.php>
    Order deny,allow
    Deny from All
    allow from [your_static_ip]
    </Files>

Viewing 1 replies (of 1 total)
  • The topic ‘.htaccess allow,deny directive’ is closed to new replies.