After I hide WordPress login page what behaviour can I expect?
If you use the Hide WordPress Login Page feature the following behavioural changes will occur on your website:
If you are NOT LOGGED IN and:
- ... you try to access the 'wp-login.php' page of your site, you will receive a 404 Not Found error page.
- ... you try to access any page within the 'wp-admin' section of your site, you will receive a 404 Not Found error page.
For example, you'll see something like this:
Your Activity Log will log this activity:
This restricted access to the wp-admin also applies to any links you may receive from other plugins that direct you to wp-admin. If you're not logged in, these links will fail.
Important Points To Note
- The only way to access your WordPress login page is through the new URL you have created.
- If you forget the new URL or for some reason it doesn't seem to work for you, please follow the guide outlined in this article here.
- If you've moved wordpress to a subdirectory while leaving site URL to root and then you go to yoursite.com/wordpress/”yourloginstring” and try to log in, you may get a 404 Not Found error page.
In this case, URL is yoursite.com/”yourloginstring”, skipping subdirectory in the URL.
- If you have your IP whitelisted in Shield
To have this feature applied to you, you'll need to remove your IP from the whitelist.
Shield never redirects to the custom login page... it's not designed to do that. It's designed to hide the original login page so if a user goes to the original login page they'll get a 404.
WP Login & Admin Redirection URL
You can choose to redirect the visitor to a particular page, or a custom 404 page. To achieve this, you may use the 'redirect' option within Shield.
Advanced Custom Setting
If you are familiar with PHP and know how to add custom code to your website, you may use the following WordPress filter to set a Redirect URL instead of sending a 404 Error Page (mentioned in points 1 and 2 above).
- The filter name is: icwp_shield_renamewplogin_redirect_url
- Simply return a URL to this filter - note that the URL will be cleaned and validated, and failure to validate the URL will result in default 404 Error Page behaviour.