• chaithanyakrishnapati

    (@chaithanyakrishnapati)


    I am using custom login url and i want to protect my WPadmin.

    So i created .htaccess in WPadmin and added these codes

    <Files *.php>
    deny from all
    </Files>
    #Restrict WPadmin
    Order Deny,Allow
    Allow from My ip which i am using
    Deny from all
    #End of Restriction

    I added this code and tried to login. But my custom login URL and /wp-admin/ both shows me error “Oops, that page can’t be found”

    After that i tried to password protect my WP admin in cpanel and i gave it a name and created user id and password for that and i saved it. I know that will create ajax problem so i added this code to .htaccess in WPadmin
    <Files admin-ajax.php>
    Order allow,deny
    Allow from all
    Satisfy any
    </Files>
    But this is also not working for me. Now when i try to login using custom login URL and /wp-admin/ both showing me “Oops, that page can’t be found “

    So i renamed my .htaccess to txt file in wpadmin then i can login. But if .htaccess file is present in WPadmin it shows me error “Oops, that page can’t be found” eveytime i try to login.

    Any help is appreciated. Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Try putting the allow from mypc after the deny from all

    Thread Starter chaithanyakrishnapati

    (@chaithanyakrishnapati)

    juggledad If i want to access from other laptop or other desktop then?

    if you are using – Allow from My ip which i am using – and you go to your friend’s house and try to login, it will fail since your IP address will be different. You will have to change teh IP to match the one you are using.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Want to protect my WP admin but getting error’ is closed to new replies.