How to NOT redirect login url to domain/login/
To prevent brute force and other hacking attempts, I installed a security plugin. That plugin allows for renaming the login url, however when typing in the default login page url (domainname/
wp-login.php) I just get redirected to domainname/login/. I want to provide a 404 error if a person/bot attempts to visit the default
wp-login.php page.
There seems to be a redirect in this theme that redirects
wp-login.php to /login/. Is there a way to allow for the login page to be displayed, but block the redirect from happening so hackers/bots get a 404 error when trying to access
wp-login.php?