A WordPress login redirect or cookie error prevents you from accessing the WordPress administration dashboard because the site cannot establish a valid session. This issue typically occurs for a Site Administrator when the browser fails to store cookies or when the site's configuration causes a loop during the login process.
Before you begin
You will need:
Administrator access to the WordPress site (via the dashboard or a method that bypasses the login screen).
Access to the site's files via an FTP client or a File Manager.
Access to the site's database via phpMyAdmin or a similar management tool.
Check for browser-specific issues
Before modifying site files or database settings, rule out local browser issues.
Clear your browser's cache and cookies for the specific domain.
Attempt to log in using a different web browser.
Attempt to log in using an "Incognito" or "Private" window.
If the issue persists across multiple browsers and an incognito window, the problem is likely caused by a plugin, a theme, or a server configuration.
Check for plugin or theme conflicts
A malfunctioning plugin or a theme with a conflict can interfere with the login cookie.
Access your site's files via FTP or a File Manager.
Navigate to the
/wp-content/directory.Rename the
pluginsfolder toplugins_old. This will deactivate all active plugins.Attempt to log in to the WordPress dashboard.
If you can log in, rename the folder back to
pluginsand then rename each individual plugin's folder one by one until you find the one causing the redirect loop.
Check the site's URL configuration
Incorrect URLs in the database can cause the site to redirect to the wrong location or fail to set cookies correctly.
Log in to your database management tool (such as phpMyAdmin).
Select the database for your WordPress site.
Locate the
wp_optionstable (the prefixwp_may vary).Find the rows for
siteurlandhome.Ensure both values match your current site URL exactly (e.g.,
https://example.com).If the values are incorrect, update them to the correct URL.
Check the .htaccess file
A misconfigured .htaccess file can cause redirect loops or block the cookies required for a login session.
Access your site's root directory via FTP or a File Manager.
Locate the
.htaccessfile.Rename the file to
.htaccess_oldto disable it.Attempt to log in to the WordPress dashboard.
If the login works, your
.htaccessfile contained an error. You can then rename it back and regenerate a standard WordPress.htaccessfile.
Check for a "White Screen of Death" or 500 Error
If the login page fails to load entirely or shows a "500 Internal Server Error," the issue may be related to server resources or a PHP error.
Check if the error is a "500 Internal Server Error."
If it is, check your site's error logs in your hosting control panel.
If the error is a "White Screen of Death," it is likely a PHP fatal error.
Use the "Disable all WordPress plugins" method described above to determine if a plugin is causing the crash.
Confirm the result
You can successfully reach the WordPress login page and enter your credentials.
You are redirected to the WordPress dashboard upon successful login.
The login process completes without a redirect loop or "Cookie_not_found" error.
Limitations
This procedure does not resolve issues caused by a local network firewall or a corporate proxy blocking cookies.
If the issue persists after checking the
.htaccessfile and thewp_optionstable, the problem may be related to a specific server-side configuration (such as_WORDPRESS_SESSION_SAVE_PATH) that requires Hostek support to investigate.
