
You attempted to access your WordPress admin dashboard by entering username and password and clicking Log In button. However, instead of being redirected to dashboard, you are taken back to login page. Even more frustrating, this can happen without an error message, leaving you unsure how to fix WordPress login issues like this.
WordPress login page refreshing like this can stop you from publishing post, checking order or updating your site. The good news? I would treat it as settings or file problem first, and you can usually track it down without being expert.
This guide will give you easiest checks and move to deeper ones, so you don’t have to change more than you need to.
TL;DR
- WordPress login loop can happen due to incorrect settings, outdated cache, or plugin and theme conflict
- Clear browser cookies and website cache to fix common login issue
- Check WordPress URLs, SSL settings, and “
.htaccess” rule - Temporarily disable plugins or switch themes to identify conflict
- Check disk space and error logs if problem continues
- Always back up your website before making change
What Is WordPress Login Page Refreshing Issue?
It’s often called login loop. WordPress should take you to your dashboard after you log in. Instead, it sends you back to login form again and again.

How to Recognize It
You are probably dealing with login loop if:
- Page reloads and fields become empty
- The address bar shows “
wp-login.php” with “redirect_to” in it - Your browser says “too many redirects”
If you see “incorrect password”, that’s different problem. Use Lost your password? link instead.
Why Does the Login Loop Happen?
When you log in, WordPress save cookie in your browser. Cookie is small note that says, “This person is already signed in.” If that note can’t be saved or read, WordPress asks you to log in again.
Common Causes
| What you notice | Likely cause | Try this first |
| Works in another browser | Old cookies or cache | Clear browser data |
| Started after plugin update | Plugin conflict | Turn off plugins |
| Started after moving your site | Wrong site address | Check URLs |
| Started after adding SSL or CDN | HTTPS redirect loop | Check SSL settings |
| Started after changing design | Theme problem | Switch theme |
I always begin with one question: what changed just before this started? Most of the times, answer often point to right fix.
Initial Steps Before Begin
Don’t skip this. Make copy of both your WordPress website’s files and database (where your posts and settings live). Most hosting and management panels such as ServerAvatar has backup option. If something goes wrong, you can go back.
How to Fix WordPress Login Page Refreshing Issue
Try following fix one by one to identify cause and restore access to your WordPress dashboard.
Before You Start; take backup of your website before changing configuration files, database settings, or plugins. If possible, test your website after each fix.
Fix 1: Clear Browser Cookies and Cache
First, check whether your browser is causing issue.
- Open your website in Private or Incognito window, visit your WordPress login page and try logging in.
- If login work, your normal browser may have outdated cookies or cached files.
When fixing login issues, Wiping your browser cache and cookies because corrupted or stale data can block a valid session. You can follow official WordPress login troubleshooting guide for additional check.
- Open your browser settings, and look for the Clear Browsing Data option
- Select Cookies and Other Site Data and Cached Images and Files.
- Click Clear Data.
- Open site and attempt to log in again
Just keep in mind, wiping cookies will log you out of other active sites as well.
Fix 2: Clear Website, Server, and CDN Cache
While caching speeds up page load by saving copies of your site’s files, outdated cache data can occasionally conflict with WordPress login sessions.
Follow these steps to clear different types of cache.
Step 1: Clear Website Cache
- Open your WordPress dashboard if accessible, navigate to your caching plugin settings.
- Find Purge Cache or Clear Cache option.
- Click it to remove saved cache.
Step 2: Clear Server Cache
- If you use hosting control panel, sign in and navigate to your site or application settings.
- Find server cache management option.
- Look for Clear Cache or Purge Cache button and click it if the option is there.
Step 3: Clear CDN Cache
- Log in to your CDN account, select your website.
- Go to Caching >> Configuration.
- Find the Purge Cache option.
- Click Purge Everything and confirm.
Step 4: Exclude Login Pages from Cache
- Open your caching plugin or CDN cache settings.
- Find the Cache Exclusion or Never Cache URLs option.
- Add “
/wp-login.php”, and “/wp-admin/” to exclusion list. - Save changes.
This prevents your login and admin pages from being served from cache.
If You’re Using ServerAvatar:
ServerAvatar’s WP Toolkit lets you clear WordPress application cache directly from ServerAvatar dashboard.
Open your WordPress application in ServerAvatar panel, go to WP Toolkit >> Performance section, and click Flush Cache. You can also purge Cloudflare cache through ServerAvatar’s Cloudflare integration section.
Learn more about ServerAvatar WP Toolkit Performance and Cloudflare Cache Controls.
Note: If you cannot access your caching plugin settings, follow Fix 6 to temporarily disable plugins.
Fix 3: Check Your WordPress and Site URLs
WordPress use two main URLs: WordPress Address and Site Address. If these address are incorrect, WordPress may redirect you to wrong location.
This issue commonly happen after changing domain name or moving website to another server.
You can fix it by editing “wp-config.php” file.
- Open your hosting control panel if have any or connect to your server using FTP client.
- Navigate to your WordPress installation directory.
- Find “wp-config.php” file, and download backup of file before editing it.
- Open file in text editor, add the following code above line that says:
/* That's all, stop editing! Happy publishing. */
define( 'WP_HOME', 'https://yourdomain.com' );
define( 'WP_SITEURL', 'https://yourdomain.com' );- Replace “
yourdomain.com” with your actual domain name, and use correct version of your domain, with or without “www”. - Save the changes and try logging in again.
If you use ServerAvatar:
ServerAvatar provides built-in File Manager that lets you access and edit “wp-config.php” file directly from your browser without using FTP client.
- Log in to your ServerAvatar account, Open Server Dashboard >> Applications section.
- Navigate to your WordPress application panel, and File Manager.
- Find “wp-config.php” file in your WordPress directory.

- Open file for edit, add following code above line that says: “
/* That's all, stop editing! Happy publishing. */”.
define( 'WP_HOME', 'https://yourdomain.com' );
define( 'WP_SITEURL', 'https://yourdomain.com' );- Replace “
yourdomain.com” with your actual domain name. - Use correct version of your domain, with or without “
www”. - Save changes and try logging in again.
Important:
- If these lines already exist, update them instead of adding them again.
- If WordPress is installed in subfolder, two URLs may be different.
- These settings override corresponding URLs stored in your WordPress database.
For more details, read official WordPress guide to changing your site URL.
Fix 4: Check HTTPS (SSL) and CDN Settings
SSL secure connection between your website and its visitors. Incorrect SSL or CDN settings can create redirect loop between HTTP and HTTPS.
- Log in to your CDN account, select your website.
- Open SSL/TLS >> Overview section, check current SSL encryption mode.
- If it is set to Flexible, it may be causing redirect loop.
- Install valid SSL certificate on your origin server, change SSL mode to Full (Strict).
Note: Full (Strict) requires a valid, trusted SSL certificate on your origin server. Do not switch to it until the certificate is correctly installed.
Refer to Cloudflare’s Full (Strict) SSL documentation for certificate requirements and configuration details.
Step 2: Check Your Server SSL Certificate
- Open your hosting control panel i have any, go to your website’s SSL settings.
- Check whether an SSL certificate is installed and active, If it is missing or expired, install or renew the certificate.
- Check whether your website redirects HTTP traffic to HTTPS, Make sure your website uses the correct HTTPS address.
Step 3: Check Proxy or Load Balancer Settings
If your website use another proxy or load balancer in front of your server, WordPress may not recognize that original visitor connection use HTTPS. To fix this, add following code to your “wp-config.php” file, above the line that says: /* That's all, stop editing! Happy publishing. */.
if ( isset( $_SERVER['HTTP_X_FORWARDED_PROTO'] ) && 'https' ===
$_SERVER['HTTP_X_FORWARDED_PROTO'] ) {
$_SERVER['HTTPS'] = 'on';
}This tells WordPress that original visitor connection uses HTTPS.
Note: Only use this code if your website is behind trusted proxy that sets the “HTTP_X_FORWARDED_PROTO” header. Do not trust this header from arbitrary visitors.
If You’re Using ServerAvatar:
ServerAvatar makes SSL certificate installation and management easier through its application dashboard. You can install free SSL certificate with automatic renewal without manually configuring certificate through terminal.
- Log in to your ServerAvatar account, open Server Dashboard >> Applications section >> application panel.
- Select your WordPress application, go to SSL Certificate section.
- Check whether your SSL certificate is installed and active.
- If it is missing, click Install Automatic SSL after verifying your domain’s DNS.
- Enable Force HTTP to HTTPS if you want all visitors to use HTTPS.
ServerAvatar makes SSL installation easier and automatically with auto-renewals. Read ServerAvatar Automatic SSL Installation Guide for more details.
Fix 5: Reset “.htaccess” File
“.htaccess” file contain server rule that control redirect and website URLs. Incorrect rules in this file can cause WordPress login redirect issue.
Follow these step to reset it:
- Open your hosting control panel if any, or connect to your server using FTP client.
- Navigate to your WordPress installation directory, find “
.htaccess” file. - Enable Show Hidden Files if you cannot see it, download backup of existing file.
- Rename “
.htaccess” to “.htaccess_old”. Do not delete it. - Create new file named .htaccess, add following default WordPress rules.
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress- Save your changes and reload WordPress login page to see if issue is resolved.
Important:
- These rules are for standard, single-site WordPress installation on Apache.
- If WordPress is installed in subfolder or uses Multisite, the rules may need changes.
- Your old file may contain important security or redirect rules, so keep its backup.
Using Nginx?
Nginx does not use “.htaccess” files. Check your website’s Nginx configuration for incorrect redirect rules or ask your hosting provider for help.
If You’re Using ServerAvatar:
ServerAvatar provide built-in File Manager to manage application files directly from your browser. You can find, download, rename, edit, and create files such as “.htaccess” without using FTP client. Learn more about ServerAvatar File Manager.
- Log in to your ServerAvatar account, open Server Dashboard >> Applications.
- Navigate to your WordPress application panel, and open File Manager.
- Navigate to your WordPress root directory.
- If “
.htaccess” file isn’t visible, enable Show Hidden Files option in your file manager settings. - Download backup of the existing file, Rename “
.htaccess” to “.htaccess_old”. - Create a new file named “
.htaccess”, add the above mentioned default WordPress rules.
Fix 6: Turn Off Plugins, including Security Plugins
Some WordPress plugin can conflict with each other and cause login problem. Security, caching, and custom login plugin are common places to start checking.
You can temporarily disable all plugins by renaming the plugins folder.
- Open your hosting control panel if any, or connect to your server using FTP client.
- Navigate to “
wp-content” folder, find “plugins” folder. - Rename it to “
plugins_off”, open your WordPress login page and try logging in.
If you can log in successfully:
- Rename “
plugins_off” back to “plugins”. - Open your WordPress dashboard, go to Plugins >> Installed Plugins.
- Deactivate all plugins, activate the plugins one by one.
- Try logging in after activating each plugin.
- When issue returns, you have likely found plugin causing issue.
- Update, replace, or remove problematic plugin.
If You’re Using ServerAvatar:
ServerAvatar’s WordPress Toolkit makes plugin management easier. You can view, activate, deactivate, update, and uninstall WordPress plugins directly from your application dashboard without opening the WordPress admin panel.
Open your WordPress application in ServerAvatar Dashboard and go to WordPress Toolkit >> Plugins section to manage installed plugins. You can simply deactivate all and check by activating plugins one by one to find problematic plugin.
Explore ServerAvatar WP Toolkit Plugin Management.
Note: WordPress Toolkit is paid add-on. Disabling plugins may affect your website’s features. If you run online store or membership website, perform this test during a quiet period and restore essential plugins as soon as possible.
Fix 7: Switch to Default Theme
Your active WordPress theme may contain code that conflict with WordPress or other plugin. Switching to default theme can help you check whether theme is causing login issue.
Follow these steps:
- Open your hosting control panel if any, or connect to your server using FTP client.
- Navigate to “
wp-content/themes”, check whether default WordPress theme, such as Twenty Twenty-Five, is installed. - Find folder of your currently active theme, rename active theme folder temporarily.
- Open your WordPress login page and try logging in again.
WordPress should switch to available default theme if active theme is no longer available.
If the login issue fixed:
- Your previous theme may be causing problem.
- Update theme to its latest version, Contact theme developer if issue continues.
- Restore original theme folder name after troubleshooting and activate it again when it is fixed.
If You’re Using ServerAvatar:
ServerAvatar’s WordPress Toolkit also lets you manage WordPress themes directly from your application dashboard. You can install, activate, update, and uninstall themes without accessing the WordPress admin panel.
Explore ServerAvatar WP Toolkit Theme Management.
Note: WordPress Toolkit is paid add-on. Switching themes may change how your website looks. Test this during suitable time and keep backup of your theme files.
Still Not Working?
If WordPress login page is still refreshing after trying all fixes, check your cookie settings, available disk space, and website error logs. These checks can help you find problems that are not visible on login page.
Check Cookie Settings and Disk Space
Step 1: Check Cookie Settings
Look in “wp-config.php” for line containing “COOKIE_DOMAIN”. Check whether it contains your current website domain. If it contain old or incorrect domain, update it or remove setting if it is no longer needed.
Save the file and try logging in again.
Note: This setting is not required for every WordPress website. Do not add it if it is missing. Check your cookie configuration carefully, especially after changing your domain name.
Step 2: Check Available Disk Space
- Log in to your hosting control panel if any, open server or storage usage section.
- Check available disk space, If storage is full, remove unnecessary backup files, old logs, or unused files
- Check your website again after freeing up space.
If You’re Using ServerAvatar:
ServerAvatar provide server monitoring feature that help you keep track of disk usage and other server resources. Open your server dashboard to check resource usage and identify storage-related problems. Explore ServerAvatar Server Monitoring for detailed information.
Read Error Logs or Contact Your Hosting or Management provider
If login issue continues, WordPress error logs can help you identify cause. They may show errors related to plugins, themes, or other website files.
Step 1: Enable WordPress Debugging
- Open WordPress installation directory, find and open “
wp-config.php” file. - Search for existing “
WP_DEBUG” setting. - If it already exists, update it instead of adding another definition.
- Add or update following lines above line that says:
/* That's all, stop editing! Happy publishing. */
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );- Save changes, visit your WordPress login page and try logging in again.
Step 2: Check the Error Log
- Open your WordPress installation directory, navigate to “
wp-content” folder. - Find “
debug.log” file, open file and check latest error messages. - Look for plugin names, theme names, or file paths mentioned in errors.
These details can help you identify what is causing login issue.
Step 3: Turn Off Debugging
After checking errors:
- Open “
wp-config.php” again, change “WP_DEBUG” to “false”. - Save file, delete “
wp-content/debug.log” after keeping any information needed for troubleshooting.
Note: Debug logs may contain private website information or file paths. Do not leave debugging enabled on a live website or share the complete log publicly.
If You’re Using ServerAvatar:
You can access your WordPress application files and logs through ServerAvatar’s File Manager. Additionally, you can check application logs directly from ServerAvatar dashboard, just navigate to your application panel >> Logs section.
Learn more about ServerAvatar File Manager and Application Logs section.
Still Can’t Identify Problem, contact ServerAvatar support team for the issue you are facing. Technical experts are available 24/7 at ServerAvatar to assist you with any queries or issues you may have.

How to Stop It From Happening Again
- Take backups regularly, and always before updates.
- Update WordPress, plugins and themes, testing on copy of your site first if you can.
- Remove plugins and themes you don’t use.
- Check your login after changing domains, SSL or CDN settings.
- Keep an eye on disk space.
Key Takeaways
- Clear browser cookies and cache to fix login session issue
- Purge website, server, and CDN cache
- Check WordPress Address and Site Address setting
- Verify SSL certificates and HTTPS redirect setting
- Reset “
.htaccess” file if its rule are incorrect - Disable plugins to identify plugin conflict
- Switch to default theme to check for theme conflict
- Check cookie setting and available server disk space
- Review WordPress error logs to find cause
- Keep regular backups and update WordPress, plugins, and themes
If you’d like a simpler way to manage your servers, applications, SSL certificates, firewalls, and many more, ServerAvatar can help with many of these tasks.
Conclusion
WordPress login page that keep refreshing or redirecting can be frustrating, but you can usually fix it by identifying cause. Start with simple solution like clearing browser cookies and cache, then check your WordPress URLs, SSL settings, CDN cache, “.htaccess” file, plugins, and themes. Follow each step carefully to find what is preventing you from logging in.
To avoid similar issues in future, keep WordPress, plugins, and themes updated, maintain regular website backups, and check your website after making major changes.
FAQs
Why does WordPress login page keep refreshing?
Usually, login cookie isn’t being saved or read, or something keeps redirecting you. Old browser data, wrong site URLs, SSL settings, plugins and themes are common places to look.
Can I fix it without the dashboard?
Yes, use File Manager or SFTP to edit “wp-config.php”, reset “.htaccess”, or rename plugin and theme folders.
Will turning off plugins delete my data?
Renaming plugins folder doesn’t delete plugin files or your database. Plugin features simply stop until you activate them again. Take backup anyway.
Is it safe to reset “.htaccess” file?
It’s safe when you rename old file and keep it. You can restore it if something else breaks.
Can SSL problem cause WordPress login redirect loop?
Yes, It can happen when your CDN or proxy and your server disagree about HTTPS. Fix 4 covers this.
About the Author
Meghna Meghwani is a technical writer focused on Linux, Ubuntu, VPS hosting, server management, WordPress, PHP, Node.js, cloud hosting, and DevOps. She creates beginner-friendly tutorials, practical hosting guides, troubleshooting articles, and server security content designed to help developers and businesses manage applications and servers more efficiently.
