0

I installed "HC Custom WP-Admin URL" plugin (https://wordpress.org/plugins/hc-custom-wp-admin-url/) on my WordPress installation, and then changed the admin slug value to a cryptic url (http://example.com/some-cryptic-string) so that the default (http://example.com/wp-admin) is not visible. Unfortunately now, for some reason, I am unable to unable to see either of the URLs. Effectively, I am now locked out of the CP.

I have full access to the database via the hosting provider's cpanel and phpmyadmin.

Any way that I can come out of this situation?

7
  • Rename your plugin folder. This should deactivate all your plugins. Commented Jan 23, 2015 at 11:13
  • ...unless this plugin wrote something into the htaccess file which it apparently does.
    – kraftner
    Commented Jan 23, 2015 at 11:38
  • have u tried to go to login page directly by /wp-login.php ? it should show you the form to login and after login redirect to dashboard
    – Maikal
    Commented Jan 23, 2015 at 11:40
  • @PieterGoosen, the answer below solves the problem, so I don't think I need to go that way. Thanks anyway. :)
    – Najeeb
    Commented Jan 23, 2015 at 12:46
  • 1
    @Najeeb When looking at plugins.svn.wordpress.org/hc-custom-wp-admin-url/trunk/… it appears at least it should. Just skimmed the code though...
    – kraftner
    Commented Jan 23, 2015 at 14:11

1 Answer 1

2

you sad u have access to phpmyadmin.

Go to it, find wp_options table

Look for custom_wpadmin_slug in option_name and in option_value column will be your's custom defined wp-admin slug

If you'll still wount be able to access then remove next lines in .htaccess:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^{your_wp_admin_slug}/?$ {your_site.com/}wp-login.php [QSA,L]
</IfModule>

Note that {your_wp_admin_slug} is equal to one in wp_options table

1
  • Hey thanks @Maikal, it worked. I deleted the option_value field in the row (did NOT delete the row, though), and /wp-admin/ started working just fine.
    – Najeeb
    Commented Jan 23, 2015 at 12:45

Not the answer you're looking for? Browse other questions tagged or ask your own question.