Many times facing issue for admin login, page refreshing and redirecting while login. It can be cause by various type of mistake in your WordPress.
Describe below points for resolve that issue.
- Clear Cookies to Resolve Login Issues
- Deactivate All Plugins
- Revert Back to the Default Theme
- Delete .htaccess File
- Update Site URL
Clear Cookies to resolve login issue:
For resolving WordPress admin login issue, you should have to clear browser cookies and cache. Because WordPress use cookies for login authentication, so first you have to clear browser cookie and cache. Also make sure your browser cookies are enabled. After clear your browser cookie and cache restart your browser and try to WordPress admin login.
Deactivate All Plugins
Many times WordPress plugins are generating issue. Sometimes plugins are conflict with two plugins (Either PHP code or jQUery). So conclusion is deactivating all plugins and checks it.
Revert Back to the Default Theme
If you are using a third party theme or you have created a custom theme, then you should have activated default WordPress theme. If you don’t have default WordPress theme on your server you have to uploaded on ROOT/wp-contents/themes/twentynineteen
Once you have done all the steps and login is success, it means there are some issues with your custom theme. If you are already using the default theme and customized in that then you have to rename your theme and upload theme from fresh WordPress.
Tips:
Don’t remove WordPress default theme (Twenty Eighteen or Twenty Nineteen). If you are using same theme then copy default theme and make all changes in new theme.
Delete .htaccess File
Sometimes .htaccess file is corrupted due to wrong uploading files or any other else reason, it should be showing internal server error or admin login issue. In that case, you have to rename (e.g. .htaccess_backup) your existing .htaccess file and upload new .htaccess file from fresh WordPress. If you had make a custom rules in .htaccess file then copy one by one rule from old and paste in new .htaccess file. Don’t forget the check login page while copy rules from old .htaccess to new .htaccess file.
Update Site URL
In few cases defining site URL seems to fix the issue. For resolving that issue you need to connect your server either ftp or cPanel and open wp-config.php (ROOT/wp-config.php) file. After open that file, you should have to add two below lines in your wp-config.php file.
define(‘WP_HOME’,’http://YOURSITEURL.com’);
define(‘WP_SITEURL’,’http://YOURSITEURL.com’);
Once you added both the lines, save your changes and check admin login with right credentials.