I was installation some security plug-ins advised and those plug-ins now stop me from accessing the admin menu. I tried to restore the SQL but this still did not fix it. I think the plug-ins must have hid the login URL for security measures. I know I should have known better, but I thought an SQL restoration would have solved it, which it has not. I’ve also deleted the plug-ins in the directory,which still did not do anything. Even though it’s my own site I still feel I need to solve this.
It might be worth checking the permissions on the /wp-admin directory and checking the .htaccess file to see if there are any rewrites there preventing you from accessing /wp-admin in the normal fashion.
Well, if you can’t do anything at all…then remove the offending plugins, get to your admin account and log in, disable them all, and after that re-enable one by one to know who did the job!.
How to remove the plugins? Well, it is a bit drastic but this is as easy as using your FTP account and removed them from the wp-content\plugins folder.
I’ve deleted the plug-ins in the WP plug-ins folder in the FTP, I’ve also replace the SQL database with a backup. Is there a way I can find the login page in SQL, maybe this would help. The problem is still not resolved after all this, so I am puzzled on what else to do, apart from creating a completely fresh WP installation.
So /wp-admin doesn’t redirect you to /wp-login.php?
I know AskApache PassPro messes with your .htaccess files. So it might be worth checking both the wordpress root folder and the /wp-admin folder and removing the AA PassPro sections from their .htaccess files.
Thanks for your advice. AskApache certainly did do something in the .htaccess file. I removed all the code it added but it did not fix it.
Replaced the wp-config files with older files
Replaced the SQL database
Replaced the .htaccess files
Deleted the security plug-ins
This situation reminds of when I use to set passwords which were too complex for anybody to remember, in the end I would end up forgetting the password.
There is one thing left to do, which I feel would be inevitable at this stage, and this is to completely replace WP installation and start from the beginning. I will eventually isolate the problem. I feel one of the plug-ins changed the location of the WP-admin and WP-login locations, to an undisclosed URL.
I’ve now managed to log in with this /wp-login.php?redirect_to=http%3A%2F%2Fwww.exampledomainname.com%2Fwp-admin%2F&reauth=1, but when you’re logged in you still can’t make edits as I get the 404 message. I’ve reset the plug-ins folder too, but still no hope.
I’ve since fix the issue. AskApache created a .htaccess file in the /wp-admin folder which cause the issue. Once deleting this it worked okay. Never using that plug-in again