Home › Forums › WordPress Plugins › Hide My WP › /wp-admin/ redirects to the correct login page
- This topic has 14 replies, 2 voices, and was last updated 5 years, 3 months ago by jedlarosa.
-
AuthorPosts
-
August 14, 2019 at 11:09 am #27253
Hello,
I want to use the option of your plugin to hide my login page only. Well, after doing that. When I type http://www.url.com/wp-login.php, I can no longer access it. But when I type http://www.url.com/wp-admin, it automatically redirected me to the correct login page of my wordpress.
How to fix my issue? I dont want to change the wp-admin because it creates issues to my other plugin. Please help!
August 14, 2019 at 11:42 am #27254Suman M.Post count: 12478Hi, do you want to block direct access to /wp-login.php and /wp-admin? Or your requirement is something else?
In General settings tab, there are 2 options – https://www.screencast.com/t/5Ur2JmAHYwcP
1) Hide Login Page
2) Hide Admin“Hide Login Page” is for blocking direct access to http://www.url.com/wp-login.php
With this option enabled, you will be able to access login page only using secret key, e.g. http://www.url.com/wp-login.php?hide_my_wp=1234
(you can define your own secret key)
And if you do not want to use secret key then you can define your login path in “Change Login URL” option in Permalinks & URLs tab. Using this option you can access the login page like http://www.url.com/mylogin“Hide Admin” is for blocking direct access to http://www.url.com/wp-admin
August 14, 2019 at 12:43 pm #27256Please watch my video here so you know what is going on exactly:
https://www.loom.com/share/6622688e2d734692a25935a9e19cc131August 15, 2019 at 3:47 am #27262Suman M.Post count: 12478To block direct access to /wp-admin you will need to enable/check “Hide Admin” option in General Settings tab.
If it’s still the issue then please let us know your site’s wp-admin login details (as private reply) so that we can look into it. Thanks!August 16, 2019 at 12:41 am #27273Thats my problem. I dont want to block my wp-admin to avoid issues to my other plugins. What I want is when I am not logged in to the site and when I type wp-admin, it should not redirect to the user to the secret url login page. How can it be a secret if your plugin unable to block this situation? Is there any way to detect that if user is not login and still want to access wp-admin, it should never redirect to the login page, right?
August 16, 2019 at 4:29 am #27274Suman M.Post count: 12478/wp-admin and /wp-login.php are inter-related, and wordpress redirects wp-admin to wp-login.php. I didn’t get, what’s the point of hiding only wp-login.php and not wp-admin. The users and bots will know that it’s WP login page if either /wp-login.php or /wp-admin is accessible. So, either hide both or none.
August 16, 2019 at 4:36 am #27276ahh I see. Makes sense. You have a point. Thanks a lot for the information!
August 25, 2019 at 10:41 pm #27330Hi Suman,
It’s me again. Okay, I tried to follow your instructions. I have changed my wp-admin and when I tried going to cyberwrath.tech/wp-admin
It no longer access my login page anymore, But when I tried to use the new url of wp-admin, for example, like this one:
cyberwrath.tech/protector-of-girlsIt redirected me again to the correct login page again without using the ?girl-hunter=6969
The user must use cyberwrath.tech/protector-of-girls?girl-hunter=6969 before he can access my login page, but that is not happening. He can access my login page by using this url only: cyberwrath.tech/protector-of-girls without the ?girl-hunter=6969
How to fix this?
August 26, 2019 at 4:23 am #27332Suman M.Post count: 12478Hi, did you rename wp-admin path name using the option “New wp-admin Path” in Permalinks & URLs tab? Also make sure that “Hide Admin” option in General Settings tab is enabled/checked. Let us know if it’s still the issue.
But I don’t see much issue even if you are able to access login page with http://www.cyberwrath.tech/protector-of-girls/ (‘protector-of-girls’ is already unique and known to you only)
August 26, 2019 at 4:28 am #27333This reply has been marked as private.August 26, 2019 at 5:53 am #27335This reply has been marked as private.August 27, 2019 at 4:46 am #27340Suman M.Post count: 12478This reply has been marked as private.August 27, 2019 at 4:51 am #27341This reply has been marked as private.August 27, 2019 at 5:44 am #27342Suman M.Post count: 12478This reply has been marked as private.August 27, 2019 at 5:45 am #27343This reply has been marked as private. -
AuthorPosts
You must be logged in to reply to this topic.