Want to protect my WP admin but getting error
-
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 RestrictionI 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
- The topic ‘Want to protect my WP admin but getting error’ is closed to new replies.