{"id":4599,"date":"2019-11-06T08:45:36","date_gmt":"2019-11-06T08:45:36","guid":{"rendered":"https:\/\/www.hostinger.com\/tutorials\/?p=4599"},"modified":"2023-04-05T07:23:30","modified_gmt":"2023-04-05T07:23:30","slug":"fix-wordpress-login-redirect-loop","status":"publish","type":"post","link":"\/tutorials\/fix-wordpress-login-redirect-loop","title":{"rendered":"How to fix WordPress login redirect loop issue"},"content":{"rendered":"<p>Being stuck on the WordPress login page can be frustrating. Fortunately, there are several ways to solve this issue. Take a look at this article as we&rsquo;ll uncover how to solve the WordPress login redirect loop issue using three simple methods.<\/p><p class=\"has-text-align-center\"><a href=\"https:\/\/assets.hostinger.com\/content\/tutorials\/pdf\/Mega-WordPress-Cheat-EN.pdf\" target=\"_blank\" rel=\"noopener\">Download all-in-one WordPress cheat sheet<\/a><\/p><p>\n\n\n\n\n\n\n<\/p><h2 class=\"wp-block-heading\" id=\"h-three-ways-to-fix-wordpress-login-redirect-loop-issue\">Three Ways to Fix WordPress Login Redirect Loop Issue<\/h2><p>Generic WordPress redirect loops are quite common, but a login redirect issue occurs when the platform keeps redirecting you to the wp-admin page even though you input the correct login credentials.<\/p><p>Depending on its cause, there are three ways to solve the WordPress login redirect loop issue: <strong>clearing browser cookies and cache<\/strong>,<strong> restoring .htaccess file<\/strong>, and <strong>deactivating themes and plugins.<\/strong><\/p><p>\n\n\n<div class=\"protip\">\n                    <h4 class=\"title\">Pro Tip<\/h4>\n                    <p>Be sure to <a href=\"\/tutorials\/backup-wordpress\">back up your WordPress site<\/a> first before making any major changes to avoid data loss<\/p>\n                <\/div>\n\n\n\n<\/p><h3 class=\"wp-block-heading\" id=\"h-method-1-clearing-browser-cookies-and-cache\">Method 1: Clearing Browser Cookies and Cache<\/h3><p>WordPress uses cookies for user authentication and session management. It also enables <a href=\"\/tutorials\/website-cache\">website caching<\/a> to make it load faster.<\/p><p>While they are beneficial to your site, cookies and cache can cause the WordPress login redirect loop issue. The problem arises when your browser&rsquo;s cookies and cache still hold onto old information or use outdated WordPress files.<\/p><p>Here&rsquo;s how to clear your browser cookies and cache in popular web browsers:<\/p><h4 class=\"wp-block-heading\" id=\"h-google-chrome\">Google Chrome<\/h4><ol class=\"wp-block-list\">\n<li>Click the three-dot menu at the top-right corner, then select <strong>History<\/strong>. Alternatively, you can press <strong>Ctrl+H.<\/strong><\/li>\n\n\n\n<li>Choose <strong>Clear browsing data<\/strong> from the left column.<\/li>\n\n\n\n<li>Once the dialog box appears, tick the <strong>Cookies and other site data<\/strong> and <strong>Cached images and files<\/strong> options. Set the time range to <strong>All time<\/strong>, then click <strong>Clear data<\/strong>.  <\/li>\n<\/ol><figure class=\"wp-block-image size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/11\/Screenshot-2022-11-14-at-18.57.13.png\"><img decoding=\"async\" width=\"1024\" height=\"475\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/Screenshot-2022-11-14-at-18.57.13.png\/public\" alt=\"Ticking the Cookies and other site data, Cached images and files options. Then setting the time range to All time, then click Clear data.  \" class=\"wp-image-68719\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/Screenshot-2022-11-14-at-18.57.13.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/Screenshot-2022-11-14-at-18.57.13.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/Screenshot-2022-11-14-at-18.57.13.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/Screenshot-2022-11-14-at-18.57.13.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><h4 class=\"wp-block-heading\" id=\"h-mozilla-firefox\">Mozilla Firefox<\/h4><ol class=\"wp-block-list\">\n<li>Select the hamburger button at the top right corner, then go to <strong>Options<\/strong> -&gt; <strong>Privacy &amp; Security<\/strong>.<\/li>\n\n\n\n<li>Navigate to the <strong>Cookies and Site Data<\/strong> section and select <strong>Clear data<\/strong>.<\/li>\n\n\n\n<li>Tick the <strong>Cookies and Site Data<\/strong> and <strong>Cached Web Content<\/strong> options, then click <strong>Clear<\/strong>.<\/li>\n<\/ol><figure class=\"wp-block-image size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/11\/Screenshot-2022-11-14-at-18.59.27.png\"><img decoding=\"async\" width=\"1024\" height=\"497\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/Screenshot-2022-11-14-at-18.59.27.png\/public\" alt=\"Cookies and Site Data and Cached Web Content options \" class=\"wp-image-68720\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/Screenshot-2022-11-14-at-18.59.27.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/Screenshot-2022-11-14-at-18.59.27.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/Screenshot-2022-11-14-at-18.59.27.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/Screenshot-2022-11-14-at-18.59.27.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><h4 class=\"wp-block-heading\" id=\"h-safari\">Safari<\/h4><ol class=\"wp-block-list\">\n<li>Navigate to <strong>Preferences<\/strong> -&gt; <strong>Privacy<\/strong>. Alternatively, you can press<strong> Command+.<\/strong><\/li>\n\n\n\n<li>Select <strong>Remove All Website Data<\/strong> button, then click <strong>Remove Now<\/strong>.<br><\/li>\n<\/ol><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/11\/Screenshot-2022-11-14-at-19.00.40.png\"><img decoding=\"async\" width=\"1024\" height=\"445\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/Screenshot-2022-11-14-at-19.00.40.png\/public\" alt='Remove All Website Data button \"Remove Now\"' class=\"wp-image-68721\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/Screenshot-2022-11-14-at-19.00.40.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/Screenshot-2022-11-14-at-19.00.40.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/Screenshot-2022-11-14-at-19.00.40.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/Screenshot-2022-11-14-at-19.00.40.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><h4 class=\"wp-block-heading\" id=\"h-microsoft-edge\">Microsoft Edge<\/h4><ol class=\"wp-block-list\">\n<li>Click the three-dot menu at the top right corner, then select <strong>History<\/strong>. You can also press&nbsp;<strong>Ctrl + H.<\/strong><\/li>\n\n\n\n<li>Select the <strong>Clear history<\/strong> link to open the<strong> Clear Browsing Data<\/strong> menu.<\/li>\n\n\n\n<li>Tick the <strong>Cookies and saved website data<\/strong> and <strong>Cached data and files<\/strong> options, then click <strong>Clear<\/strong>.<br><\/li>\n<\/ol><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/11\/Screenshot-2022-11-14-at-19.01.54.png\"><img decoding=\"async\" width=\"1024\" height=\"509\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/Screenshot-2022-11-14-at-19.01.54.png\/public\" alt='Cookies and saved website data and Cached data and files options \"Clear\"' class=\"wp-image-68722\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/Screenshot-2022-11-14-at-19.01.54.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/Screenshot-2022-11-14-at-19.01.54.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/Screenshot-2022-11-14-at-19.01.54.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/Screenshot-2022-11-14-at-19.01.54.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><h3 class=\"wp-block-heading\" id=\"h-method-2-restoring-default-htaccess-file\">Method 2: Restoring Default .htaccess File<\/h3><p>In some cases, the WordPress login redirect loop issue is a result of a corrupted <strong>.htaccess<\/strong> file. If that&rsquo;s so, you only need to replace the faulty file with the working one.<\/p><p>Here&rsquo;s how to restore the default <strong>.htaccess<\/strong> file:<\/p><ol class=\"wp-block-list\">\n<li>Access your website&rsquo;s root folder (<strong>public_html<\/strong>) using an FTP or a File Manager. If you&rsquo;re using Hostinger, you can find the <strong>File Manager<\/strong> under the <strong>Files<\/strong> section of your hPanel.<\/li>\n<\/ol><figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/05\/The-Files-section-on-hPanel-with-the-File-Manager-button-highlighted.png\"><img decoding=\"async\" width=\"448\" height=\"344\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/05\/The-Files-section-on-hPanel-with-the-File-Manager-button-highlighted.png\/public\" alt=\"The File Manager button under the Files section\" class=\"wp-image-77756\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/05\/The-Files-section-on-hPanel-with-the-File-Manager-button-highlighted.png\/w=448,fit=scale-down 448w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/05\/The-Files-section-on-hPanel-with-the-File-Manager-button-highlighted.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/05\/The-Files-section-on-hPanel-with-the-File-Manager-button-highlighted.png\/w=150,fit=scale-down 150w\" sizes=\"(max-width: 448px) 100vw, 448px\" \/><\/a><\/figure><ol class=\"wp-block-list\" start=\"2\">\n<li>Locate the <strong>.htaccess<\/strong> file, then delete it. Alternatively, you can disable it by renaming the file to something else.<\/li>\n\n\n\n<li>Create a new <strong>.htaccess<\/strong> file for your WordPress site.<\/li>\n<\/ol><h3 class=\"wp-block-heading\" id=\"h-method-3-deactivating-themes-and-plugins\">Method 3: Deactivating Themes and Plugins<\/h3><p>Conflicting or corrupted plugins are another common culprit of the WordPress login redirect loop issue. Therefore, you need to deactivate the faulty plugin.<\/p><p>Here&rsquo;s how to troubleshoot the login redirect loop issue by deactivating your WordPress plugins:<\/p><ol class=\"wp-block-list\">\n<li>Access your website&rsquo;s <strong>wp-content<\/strong> directory using an <strong>FTP <\/strong>or a <strong>File Manager<\/strong>.<\/li>\n\n\n\n<li>Rename the <strong>plugins<\/strong> folder to something else to deactivate all plugins. If this action solves the issue, that means you have a corrupted plugin. What we need to do now is to find the exact culprit.<\/li>\n<\/ol><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/04\/rename-plugins-folder.png\"><img decoding=\"async\" width=\"1024\" height=\"400\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/04\/rename-plugins-folder.png\/public\" alt=\"Renaming the plugins folder to plugins-disabled.\" class=\"wp-image-82804\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/04\/rename-plugins-folder.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/04\/rename-plugins-folder.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/04\/rename-plugins-folder.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/04\/rename-plugins-folder.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><ol class=\"wp-block-list\" start=\"3\">\n<li>Change the <strong>plugins <\/strong>folder to its original name. This way, WordPress can reaccess your plugins, but all of them are still inactive.<\/li>\n\n\n\n<li>Login to your WordPress dashboard and head over to <strong>Plugins <\/strong>-&gt; <strong>Installed Plugins. <\/strong>Activate all plugins.<\/li>\n\n\n\n<li>Logout from WordPress, and go back to your File Manager.<\/li>\n\n\n\n<li>Open the <strong>plugins <\/strong>directory, and disable the plugins one by one by renaming the corresponding folders. Each time you disable a plugin, try to login to your site and keep doing that until you find the one that causes the issue.<\/li>\n<\/ol><p>Similarly, a faulty custom theme can also disrupt your access to <strong>wp-admin<\/strong>. To confirm this suspicion, you need to revert the site to the default WordPress theme &ndash; <a href=\"https:\/\/wordpress.org\/themes\/twentyseventeen\/\" target=\"_blank\" rel=\"noopener\">Twenty Seventeen<\/a>.<\/p><p>Here&rsquo;s how to troubleshoot the login redirect loop issue by deactivating your WordPress theme:<\/p><ol class=\"wp-block-list\">\n<li>Access your site&rsquo;s MySQL database via <strong>phpMyAdmin<\/strong>. If you&rsquo;re a Hostinger user, open your hPanel, go to <strong>phpMyAdmin <\/strong>and select your database. If you don&rsquo;t know your WordPress database name, this tutorial can help you.<\/li>\n\n\n\n<li>Click <strong>Browse<\/strong> next to the <strong>wp_options<\/strong> table. Please note that the table&rsquo;s prefix may vary.<\/li>\n<\/ol><figure class=\"wp-block-image aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/11\/phpMyAdmin-browse.png\"><img decoding=\"async\" width=\"1024\" height=\"415\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/phpMyAdmin-browse.png\/public\" alt=\"phpMyAdmin -  Browse next to the wp_options table\n\" class=\"wp-image-68712\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/phpMyAdmin-browse.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/phpMyAdmin-browse.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/phpMyAdmin-browse.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/phpMyAdmin-browse.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><ol class=\"wp-block-list\" start=\"3\">\n<li>Expand your table&rsquo;s content by checking the <strong>Show all<\/strong> option.<\/li>\n<\/ol><figure class=\"wp-block-image aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/11\/phpMyAdmin-expand-your-tables-content-by-checking-the-22Show-all22-option..png\"><img decoding=\"async\" width=\"1024\" height=\"209\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/11\/phpMyAdmin-expand-your-tables-content-by-checking-the-22Show-all22-option.-1024x209.png\" alt='phpMyAdmin, expand your table&rsquo;s content by checking the \"Show all\" option.\n' class=\"wp-image-68713\" srcset=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/11\/phpMyAdmin-expand-your-tables-content-by-checking-the-22Show-all22-option..png 1024w, https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/11\/phpMyAdmin-expand-your-tables-content-by-checking-the-22Show-all22-option.-300x61.png 300w, https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/11\/phpMyAdmin-expand-your-tables-content-by-checking-the-22Show-all22-option.-150x31.png 150w, https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/11\/phpMyAdmin-expand-your-tables-content-by-checking-the-22Show-all22-option.-768x157.png 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><ol class=\"wp-block-list\" start=\"4\">\n<li>Locate the <strong>template<\/strong> and <strong>stylesheet<\/strong> rows, then rename the values to <strong>twentyseventeen<\/strong> by double-clicking the current theme name.<\/li>\n<\/ol><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/11\/phpMyAdmin-locating-the-template-and-stylesheet-rows-then-rename-the-values-to-twentyseventeen-by-double-clicking-the-current-theme-name..png\"><img decoding=\"async\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/11\/phpMyAdmin-locating-the-template-and-stylesheet-rows-then-rename-the-values-to-twentyseventeen-by-double-clicking-the-current-theme-name.-1024x325.png\" alt=\"phpMyAdmin, locating the template and stylesheet rows, then rename the values to twentyseventeen by double-clicking the current theme name.\" class=\"wp-image-68714\" width=\"840\" height=\"266\" srcset=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/11\/phpMyAdmin-locating-the-template-and-stylesheet-rows-then-rename-the-values-to-twentyseventeen-by-double-clicking-the-current-theme-name..png 1024w, https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/11\/phpMyAdmin-locating-the-template-and-stylesheet-rows-then-rename-the-values-to-twentyseventeen-by-double-clicking-the-current-theme-name.-300x95.png 300w, https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/11\/phpMyAdmin-locating-the-template-and-stylesheet-rows-then-rename-the-values-to-twentyseventeen-by-double-clicking-the-current-theme-name.-150x48.png 150w, https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/11\/phpMyAdmin-locating-the-template-and-stylesheet-rows-then-rename-the-values-to-twentyseventeen-by-double-clicking-the-current-theme-name.-768x243.png 768w\" sizes=\"(max-width: 840px) 100vw, 840px\" \/><\/a><\/figure><\/div><p>     5. If you can log into your site, that means your current theme causes the login redirect loop error.<\/p><figure class=\"wp-block-image size-large\"><a class=\"hgr-tutorials-cta hgr-tutorials-cta-wordpress-hosting\" href=\"\/wordpress-hosting\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" width=\"2048\" height=\"600\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/06\/New-WP_in-text-banner.png\/public\" alt=\"\" class=\"wp-image-111781\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/06\/New-WP_in-text-banner.png\/w=2048,fit=scale-down 2048w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/06\/New-WP_in-text-banner.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/06\/New-WP_in-text-banner.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/06\/New-WP_in-text-banner.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/06\/New-WP_in-text-banner.png\/w=768,fit=scale-down 768w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/06\/New-WP_in-text-banner.png\/w=1536,fit=scale-down 1536w\" sizes=\"(max-width: 2048px) 100vw, 2048px\" \/><\/a><\/figure><h2 class=\"wp-block-heading\" id=\"h-conclusion\">Conclusion<\/h2><p>WordPress login redirect loop is a common issue that can happen to anyone. Fortunately, you can easily solve this error by clearing browser cookies and cache, restoring the default <strong>.htaccess<\/strong> file, and deactivating themes and plugins.<\/p><p>Do you find this <a href=\"\/tutorials\/wordpress\">WordPress tutorial<\/a> helpful? Let us know in the comments section below!<\/p><p>\n\n\n<div class=\"protip\">\n                    <h4 class=\"title\">Suggested Readings<\/h4>\n                    <p><br>\n<a href=\"\/tutorials\/debug-wordpress\">Debug WordPress: a Comprehensive Guide for Beginners<\/a><br>\n<a href=\"\/tutorials\/fix-locked-out-of-wordpress-admin-issue\">Locked Out of WordPress? Here&rsquo;s What You Need to Do<\/a><br>\n<a href=\"\/tutorials\/fix-wordpress-white-screen-of-death\">How to Fix WordPress White Screen of Death: 7 Solutions<\/a><br>\n<\/p>\n                <\/div>\n\n\n\n<\/p><h2 class=\"wp-block-heading\" id=\"h-wordpress-login-redirect-loop-faq\">WordPress Login Redirect Loop FAQ<\/h2><p>To understand WordPress login redirect loop better, here are some frequently asked questions.<\/p><div class=\"schema-faq wp-block-yoast-faq-block\"><div class=\"schema-faq-section\" id=\"faq-question-1678181293143\"><h3 class=\"schema-faq-question\">How Do I Redirect a User After Logging in to WordPress?<\/h3> <p class=\"schema-faq-answer\">To redirect a user after logging in to WordPress, you can use a plugin like <strong>Peter&rsquo;s Login Redirect<\/strong>, or add code to the <strong>functions.php<\/strong> file to redirect users based on their user role or other criteria.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1678181345347\"><h3 class=\"schema-faq-question\">How Do I Stop WordPress Login Redirection?<\/h3> <p class=\"schema-faq-answer\">To stop WordPress login redirection, you can disable the plugin causing the redirection, remove the code that redirects users from the functions.php file, or use a plugin to customize the login page and redirection settings.<\/p> <\/div> <\/div>\n","protected":false},"excerpt":{"rendered":"<p>Being stuck on the WordPress login page can be frustrating. Fortunately, there are several ways to solve this issue. Take [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"\/tutorials\/fix-wordpress-login-redirect-loop\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":2,"featured_media":4852,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_title":"3 Easy Ways to Fix WordPress Login Redirect Loop Issue","rank_math_description":"Does WordPress keep redirecting you to the login page? Check out this tutorial on how to fix the WordPress login redirect loop issue.","rank_math_focus_keyword":"wordpress login redirect loop","footnotes":""},"categories":[22640,22637],"tags":[],"class_list":["post-4599","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-security-and-maintenance","category-wordpress"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/tutorials\/fix-wordpress-login-redirect-loop","default":0},{"locale":"pt-BR","link":"https:\/\/www.hostinger.com\/br\/tutoriais\/loop-redirecionamento-login-wordpress","default":0},{"locale":"en-UK","link":"https:\/\/www.hostinger.com\/uk\/tutorials\/fix-wordpress-login-redirect-loop","default":0},{"locale":"en-MY","link":"https:\/\/www.hostinger.com\/my\/tutorials\/how-to-start-a-blog-5","default":0},{"locale":"en-PH","link":"https:\/\/www.hostinger.com\/ph\/tutorials\/fix-wordpress-login-redirect-loop","default":0},{"locale":"pt-PT","link":"https:\/\/www.hostinger.com\/pt\/tutoriais\/loop-redirecionamento-login-wordpress","default":0},{"locale":"en-IN","link":"https:\/\/www.hostinger.com\/in\/tutorials\/fix-wordpress-login-redirect-loop","default":0},{"locale":"en-CA","link":"https:\/\/www.hostinger.com\/ca\/tutorials\/fix-wordpress-login-redirect-loop","default":0},{"locale":"en-AU","link":"https:\/\/www.hostinger.com\/au\/tutorials\/fix-wordpress-login-redirect-loop","default":0},{"locale":"en-NG","link":"https:\/\/www.hostinger.com\/ng\/tutorials\/fix-wordpress-login-redirect-loop","default":0}],"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/posts\/4599","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/comments?post=4599"}],"version-history":[{"count":35,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/posts\/4599\/revisions"}],"predecessor-version":[{"id":82805,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/posts\/4599\/revisions\/82805"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/media\/4852"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/media?parent=4599"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/categories?post=4599"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/tags?post=4599"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}