Hide or redirect wp-login.php
Is there a way to prevent visitors, whether logged in or not, from reaching mysite.com/wp-login.php ?
I have a separate login form that is all we need. I know I can re-style the form generated by wp-login but I’d rather not have to deal with it at all. I’ve tried various filters and hooks and I can’t seem to get it to redirect. I also tried using a .htaccess redirect and I found that this works, but then it prevents my custom login/logout form from working.
- The topic ‘Hide or redirect wp-login.php’ is closed to new replies.