Home Forums WordPress Plugins Hide My WP wp-admin redirects to wp-login.php?query=key

This topic is: resolved
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #2336
    Caxla
    Post count: 5

    Hello,

    I have recently encountered this problem:
    In my browser, when I type in http://www.mydomain.com/wp-admin I am being redirected to http://www.mydomain.com/wp-login.php?query=key (which is my secret login). It totally defeats the purpose. I wonder why it happens? Maybe I have something wrong in .htaccess or maybe I’m missing some option checked in HMWP?

    I could use some advice…

    #2337
    Caxla
    Post count: 5
    This reply has been marked as private.
    #2341
    Suman M.
    Post count: 12478

    Hi, can you please comment out (by adding # in the beginning of the line) the following lines in the htaccess and check?

    RewriteCond %{QUERY_STRING} !=””
    RewriteCond %{QUERY_STRING} !^p=.*
    RewriteCond %{QUERY_STRING} !^s=.*
    RewriteCond %{REQUEST_URI} !^/wp-admin.*
    RewriteCond %{REQUEST_URI} !^/wp-login.*
    RewriteRule ^(.*)$ /$1? [R=301,L]

    If it’s still not working, then please let us know your website backend details (as private message) so that we can have a look at the issue.

    #2342
    Caxla
    Post count: 5
    This reply has been marked as private.
    #2349
    Suman M.
    Post count: 12478

    You can click on “generate debug report” button in Start tab and send the debug report to us.

    #2350
    Caxla
    Post count: 5
    This reply has been marked as private.
    #2352
    Suman M.
    Post count: 12478

    Hi, everything looks good. Can you please try removing the entire block (bottom one) from the htaccess file? If it still doesn’t work, then let us know your website backend details (as private message) so that we can have a look at the issue further.

    #2353
    Caxla
    Post count: 5
    This reply has been marked as private.
    #2356
    Suman M.
    Post count: 12478

    Hi, the issue has been resolved. In Permalinks & URLs tab, “New wp-admin Path” was set to “wp-admin”, and this was causing the issue. I’ve emptied that option box now and /wp-admin is not accessible now.

    #2358
    Caxla
    Post count: 5

    Hey,

    It is looking all good now. I’ll keep that box blank to not mess up again.
    Big thanks for help. You are great!

    Now I can get back to my work 🙂

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

You must be logged in to reply to this topic.