I have a WordPress website on a Digital Ocean VPS which I've come back to and tried to log into the admin panel through the 'wp-admin' link. For some reason I can't access it now. The website gets redirected to 'http://%24domain/wp-admin/' which is a broken link.
Here are the current things that I have tried but nothing has worked so far:
Renaming the plugins directory so they appear deactivated
Adding the following two lines to wp-config.php: define('WP_SITEURL', 'http://example.com'); define('WP_HOME', 'http://example.com');
Keeping the theme/plugin files but re-uploading the core WordPress files
Changing some options values (but adding a custom script which requires wp-load.php): update_option('siteurl', 'http://example.com' ); update_option('home', 'http://example.com' );
Deleting the .htaccess in the root directory
None of these have worked and I have no idea why the admin panel can't be accessed and redirects to that domain.
Can someone help me get the admin panel working again? Any help is much appreciated!