How to Fix WordPress Login Page Refreshing and Redirecting Issue
This can be caused by:
- Incorrect Site URL Settings – Wrong values in the database can cause login redirection.
- Corrupt .htaccess File – Misconfigured rewrite rules can prevent login.
- Plugin Conflicts – Security or redirection plugins may block access.
- Theme Issues – A faulty theme can interfere with the login process.
- Browser Cache & Cookies – Outdated cache or blocked cookies can prevent login.
- Corrupt WordPress Files – Damaged core files can break authentication.

How to Fix It:
If your WordPress login page keeps refreshing or redirecting without letting you log in, here are some ways to fix it:
1. Clear Your Browser Cache and Cookies
Sometimes, old cookies and cache can cause login issues. Try clearing them and then log in again.
2. Check Your Site URL Settings
If your website URL is incorrect, it can cause login problems.
- Log in to your hosting control panel and open phpMyAdmin.
- Find the wp_options table.
- Look for siteurl and home and make sure they have the correct URL (e.g.,https://yourdomain.com.
- If they are wrong, update them.
3. Rename or Delete the .htaccess File
- Connect to your site using FTP or File Manager in your hosting account.
- Find the.htaccess file in your site’s root folder.
- Rename it to .htaccess_old and try logging in again.
- If this fixes the issue, go to Settings > Permalinks in WordPress and click “Save Changes” to generate a new .htaccess file.
4. Disable Plugins
A faulty plugin can sometimes cause login issues.
- Connect to your site using FTP or File Manager.
- Go to wp-content/plugins/ and rename the plugins folder to plugins_old.
- Try logging in again.
- If you can log in, rename the folder back to plugins and activate your plugins one by one to find the one causing the issue.
5. Switch to a Default Theme
If the problem started after installing or updating a theme, try switching to a default WordPress theme like Twenty Twenty-Four.
- Go to wp-content/themes/ using FTP or File Manager.
- Rename your current theme folder (e.g., yourtheme_old).
- This will force WordPress to use a default theme.
6. Check Your wp-config.phpFile
- Open wp-config.php in your site’s root folder.
- Look for these lines:define(‘WP_HOME’, ‘https://yourdomain.com’);
define(‘WP_SITEURL’, ‘https://yourdomain.com’); - Make sure they match your website’s actual URL.
7. Reset Your Password
If you suspect your password is wrong:
- Open phpMyAdmin and go to the wp_users table.
- Find your username and update the password using this SQL query:UPDATE wp_users SET user_pass = MD5(‘yournewpassword’) WHERE user_login = ‘yourusername’;
- Replace yournewpassword with your actual new password.
8. Increase PHP Memory Limit
If your site is running out of memory, you can increase it by adding this line to wp-config.php:
9. Restore a Backup
If nothing works, restoring a previous backup of your website might be the best option.