Home Forums WordPress Plugins Hide My WP /wp-admin/ redirects to the correct login page

This topic is: resolved

This topic contains 6 replies, has 2 voices, and was last updated by  jedlarosa 5 days, 15 hours ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #27253
    jedlarosa
    Post count: 9

    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!

    #27254
    Suman M.
    Post count: 10625

    Hi, 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

    #27256
    jedlarosa
    Post count: 9

    Please watch my video here so you know what is going on exactly:
    https://www.loom.com/share/6622688e2d734692a25935a9e19cc131

    #27262
    Suman M.
    Post count: 10625

    To 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!

    #27273
    jedlarosa
    Post count: 9

    Thats 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?

    #27274
    Suman M.
    Post count: 10625

    /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.

    #27276
    jedlarosa
    Post count: 9

    ahh I see. Makes sense. You have a point. Thanks a lot for the information!

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.