Support » Plugin: HC Custom WP-Admin URL » New URL stills redirects me to Login page when deactivated

Viewing 3 replies - 1 through 3 (of 3 total)
  • Have you checked the .htaccess file? This plugin writes the redirect in the .htaccess file. I do not know if clicking the deactivation button removes what the plugin wrote. When you look in your .htaccess file you will see this somewhere in the text (“what_you_ …” is what you put in the slut field):

    # BEGIN WPAdminURL
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule ^what_you_put_in_the_slug/?$ /wp-login.php [QSA,L]
    </IfModule>
    # END WPAdminURL

    If you see the above code in the .htaccess file, then you will need to do something very simple. Just delete from # BEGIN …. all the way to the end of WPAdminURL Then save the file and copy it over the existing file on the server.

    OR

    Add a # at the beginning of each line (this will comment out the code).

    # BEGIN WPAdminURL
    # <IfModule mod_rewrite.c>
    # RewriteEngine On
    # RewriteRule ^what_you_put_in_the_slug/?$ /wp-login.php [QSA,L]
    # </IfModule>
    # END WPAdminURL

    Save the file and copy it over the existing htaccess file on your server.

    Whatever you do, first make a copy of the .htaccess file and always work from the copy.

    If all goes well, the effects of the plugin will be gone and you can start again. If you want to be crafty, just replace the text “what you_put_in_the_slug” with whatever term you like and you can bypass the need for the plugin altogether. As all the plugin is doing is writing piece of code, mentioned above, to the .htaccess file.

    I would suggest that you take the time to learn about the .htaccess file. It is a very powerful tool and there are lots of tricks that you can do. Lots of info found on the web.

    Thread Starter knightmetal

    (@knightmetal)

    I already solved the issue, you answered it on the first two lines:

    “This plugin writes the redirect in the .htaccess file. I do not know if clicking the deactivation button removes what the plugin wrote. “

    I didn’t know the plugins writes the redirect in the file but I did have a suspicion it would, so I opened up the file and there it was, deleting the line where the redirect is solves it 🙂

    Plugin Author somewebmedia

    (@somewebmedia)

    Saving permalinks without the plugin would solve the problem.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘New URL stills redirects me to Login page when deactivated’ is closed to new replies.