Home Forums WordPress Plugins Hide My WP I really can't get control of my admin after wp-admin name change

This topic is: resolved
Viewing 15 posts - 1 through 15 (of 25 total)
  • Author
    Posts
  • #10530
    Hyperknight
    Pro
    Post count: 28

    I changed the name of wp-admin knowing exactly what I was doing, followed the instruction and inserted the code into wp-config, but trying to log into the admin side afterwards is a mess.
    It just doesn’t work no matter what I try.

    I’ve tried deleting all the cookies, reset all the Auth keys and salts in wp-config several times, tried removing the ‘define’ code from wp-config, and removing and changing the Rewrite rule for the new admin name in htaccess.

    Nothing works. I either get 404 pages on login, or, if I append /index.php or /admin.php to the admin name I get the “hide_my_wp&die” in the URL.

    I’ve also tried deleting

    “define(‘COOKIE_DOMAIN’, ”);
    define(‘COOKIEPATH’, ”);
    define(‘SITECOOKIEPATH’, ”);”

    And that doesn’t help.

    Please help!

    #10533
    Suman M.
    Post count: 12480

    Hi, it seems like you have missed something there while trying to rename wp-admin path. Please follow the steps below:

    In “wp_options” table in your database, delete the rows with following “option_name”:
    – hide_my_wp
    – hide_my_wp_undo
    – hmwp_ids_installed
    – hmw_all_plugins
    – external_updates-hide_my_wp

    You shall now be able to login to backend. And to change wp-admin path name you’ll need to follow the on-screen instructions very carefully. Please follow these steps:

    – in HMWP Start Tab, select “Medium Privacy – More Compatibility” scheme and save the settings (assuming that it’s Apache server and htaccess file is writable)

    – in Permalink & URLs tab set “New wp-admin Path” field to “NEW_WPADMIN_PATH_NAME” (a new window will open with the instructions)

    – add following line in wp-config.php, before require_once(…)
    define(“ADMIN_COOKIE_PATH”, “/NEW_WPADMIN_PATH_NAME”);

    – you’ll also need to update your .htaccess file (if it’s not writable) by adding following line before ‘RewriteCond REQUEST_FILENAME} !-f’:
    RewriteRule ^NEW_WPADMIN_PATH_NAME/(.*) /wp-admin/$1 [QSA,L]

    – click on “I did it (login to new dashboard)” button.

    If it’s still the issue then please let us know your website’s wp-admin login details & FTP details (as private reply), so that we can look into it further.

    #10536
    Hyperknight
    Pro
    Post count: 28

    Hi,

    Followed the steps to remove the database entries, removed the admin path line from config and reset all the Auth keys again, and I can now login using the wp-admin extension.

    However if I choose medium privacy I’m going to overwrite all my current HMWP settings. I actually think the original settings began with medium privacy, but they have been modified since then to my own specifications.

    Is there a way to skip setting medium privacy and reverting all the settings and still be able to rename wp-admin properly?

    Appreciate your help, great support!

    #10537
    Suman M.
    Post count: 12480

    Hi, do you have backup of previous HMWP settings (which you can do by clicking on “export current settings” button in start tab)? If you do not have back up then you’ll need to apply the settings again.

    • This reply was modified 9 years ago by Suman M..
    #10539
    Hyperknight
    Pro
    Post count: 28

    I do have a backup, yes. I will follow your listed steps and then apply the back up settings, correct?

    #10540
    Hyperknight
    Pro
    Post count: 28
    This reply has been marked as private.
    #10541
    Hyperknight
    Pro
    Post count: 28
    This reply has been marked as private.
    #10546
    Suman M.
    Post count: 12480
    This reply has been marked as private.
    #10547
    Hyperknight
    Pro
    Post count: 28
    This reply has been marked as private.
    #10558
    Suman M.
    Post count: 12480
    This reply has been marked as private.
    #10566
    Hyperknight
    Pro
    Post count: 28

    Hi Suman,

    Do you have any ideas as to what the problem might be? A plugin, or similar?

    Basically I don’t have a problem accessing admin until I attempt to change the name via HMWP, so there must be a conflict somewhere, but I’m not sure where!

    Thanks you.

    #10567
    Hyperknight
    Pro
    Post count: 28

    Sumran, it looks like the folder you should have renamed was the plugins! After deactivating all plugins I can get into the admin with the new assigned name – but only if I add “/index.php” to the end. I’m not sure why this is.

    I’ll reactivate each plugin one by one until I find the conflict.

    #10574
    Suman M.
    Post count: 12480

    Yes, it seems like one of the plugins is crating the conflict. Please reactivate plugins one at a time and let us know.
    I think I renamed “hide_my_wp” plugin folder to “hide_my_wpXXX”. Please rename it back to “hide_my_wp” before activating it.

    • This reply was modified 9 years ago by Suman M..
    #10611
    Hyperknight
    Pro
    Post count: 28

    Hey Suman,

    I did exactly that, deactivated all and restored them.

    During the process I left HMWP until last. During the activations I was able to access the admin using the newly assigned admin name in the URL string “http://mysite.com/mynewadminname/index.php”, but every time a plugin was activated it sent me back to the login screen again. Then after logging in and returning to plugins page, I would find the plugin successfully activated. I have no idea why it was doing this.

    Finally I activated HMWP last, and that’s the one that causes total lockout. Now trying to access the dashboard or plugins page is resulting in the same 404 error.

    After login I’m now automatically getting directed to the site’s front end rather than the back, the same as before.

    I really hope you have some ideas about this, I’d really like to get my site working again.

    Thank you!

    #10627
    Suman M.
    Post count: 12480
    This reply has been marked as private.
Viewing 15 posts - 1 through 15 (of 25 total)

You must be logged in to reply to this topic.