Describe the exact login behaviour
Determine whether the login form reloads, redirects repeatedly, returns to the login screen or shows a browser cookie warning. Check whether the problem affects every account or only one user. Record the full sequence and any recent domain, SSL, hosting or plugin changes.
Rule out a browser cookie issue
Try a private window or another browser to see whether stale cookies are involved. Clear cookies for the affected site only when appropriate, then sign in again. If the issue disappears, investigate cookie settings or browser extensions rather than changing server configuration immediately.
Check the WordPress site addresses
In WordPress settings, the WordPress Address and Site Address should use the intended domain and protocol consistently. A mismatch between HTTP and HTTPS or between www and non-www versions can cause redirects that interfere with login cookies. Confirm the intended canonical URL before changing values.
Verify HTTPS and proxy configuration
If SSL terminates at a reverse proxy or hosting layer, WordPress may receive a different protocol signal from the one visitors use. Review the host's recommended HTTPS configuration and trusted proxy settings. Do not add a generic HTTPS detection snippet without understanding the server architecture.
Test plugins and security layers
Caching, security, redirect and login customisation plugins can affect authentication. On staging, deactivate likely candidates methodically and test the login flow. Also review hosting firewall rules or CDN settings that may challenge or redirect authentication requests.
Inspect cookie and domain settings
Custom cookie constants or domain definitions in wp-config.php can conflict with a site's current hostname. Compare them with the actual domain and remove obsolete customisations only after backing up the file. Avoid sharing cookie values or authentication secrets when requesting help.
Review redirects and server rules
Check redirect rules in the hosting control panel, web server configuration and any redirect plugin. Look for rules that send the login page between hostnames or protocols. Change one rule at a time and test both the public site and the administration area.
Confirm the fix safely
After correcting the cause, test login, logout, password reset and access to wp-admin. Check more than one account role if possible. Clear relevant caches and document the final domain and HTTPS configuration so future changes do not reintroduce the loop.
Conclusion
A WordPress login loop often involves cookies, URL consistency or redirects. Isolate the browser, WordPress and hosting layers in sequence, and avoid changing authentication settings blindly.
]]