How Does The Hide WP Login Redirect Work?
When you hide your WP Login and Admin pages, Shield will use a "404 Not Found" error page when a visitor tries to access your old login URL, or admin area.
This error page looks like this:
However, if you would like to provide a more friendly response, you can choose to redirect the visitor to a particular page, or a custom 404 page of your choosing. To achieve this, you'd use the 'redirect' option within Shield.
Let's look at some examples.
- Let's say that you'd like to redirect your visitors to your homepage. You would simply use a forward slash: "/"
- If you want to redirect to a "friendly" 404 page, you could use: /404
- How about redirecting to your blog? You could use: /blog (or whatever the path is to your website's blog).
- If you leave the redirection path option empty, then the default "404 Not Found" page will be displayed.
- The redirection option does not support redirecting to other websites. Please always use relative paths from your website's homepage. This is also good if you want to use the import/export feature to set the same redirection behaviour across all your WordPress sites with Shield. If you were to us full URLs with "https://" then this wouldn't work if you exported it to other sites.