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

This topic is: resolved
Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #27253
    jedlarosa
    Active
    Post count: 14

    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: 11217

    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
    Active
    Post count: 14

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

    #27262
    Suman M.
    Post count: 11217

    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
    Active
    Post count: 14

    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: 11217

    /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
    Active
    Post count: 14

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

    #27330
    jedlarosa
    Active
    Post count: 14

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

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

    #27332
    Suman M.
    Post count: 11217

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

    #27333
    jedlarosa
    Active
    Post count: 14
    This reply has been marked as private.
    #27335
    jedlarosa
    Active
    Post count: 14
    This reply has been marked as private.
    #27340
    Suman M.
    Post count: 11217
    This reply has been marked as private.
    #27341
    jedlarosa
    Active
    Post count: 14
    This reply has been marked as private.
    #27342
    Suman M.
    Post count: 11217
    This reply has been marked as private.
    #27343
    jedlarosa
    Active
    Post count: 14
    This reply has been marked as private.
Viewing 15 posts - 1 through 15 (of 15 total)

You must be logged in to reply to this topic.