I used the iThemes-securitiy plugin to change the wp-admin url, and login page.
So my previous admin page (https://www.example.com/wp-admin
) now gives an HTTP 404 error (File Not Found). Unfortunately, I do not remember what I have set the admin console URL to. How can I figure this out? I have access to the database and to the file system via SSH.
step 1: de-activate iThemes security plugin
As you cannot login to the wp-admin console, you will need ssh or ftp access to achieve this. Rename the plugin folder (on earlier installations, this folder is called 'better-wp-security')
$ cd /www/wp-content/plugins
$ mv better-wp-security better-wp-security-disabled
(or: do a rename using your ftp client)
step 2: access wp-admin
You can now access wp-admin again. Login, and keep yourself logged in. (leave browser open on wp-admin console)
step 3: re-activate iThemes security plugin
step 4: set a known login slug
In wp admin, go to:
security > advanced (selector at the top) > Hide Backend > configure settings (button)
You can review and change your login slug.