{"id":6583,"date":"2020-04-22T15:00:22","date_gmt":"2020-04-22T13:00:22","guid":{"rendered":"https:\/\/qodeinteractive.com\/magazine\/?p=6583"},"modified":"2020-09-04T00:54:05","modified_gmt":"2020-09-03T22:54:05","slug":"wordpress-login-redirect-loop","status":"publish","type":"post","link":"https:\/\/qodeinteractive.com\/magazine\/wordpress-login-redirect-loop\/","title":{"rendered":"How to Fix the WordPress Login Redirect Loop"},"content":{"rendered":"<div class=\"wpb-content-wrapper\"><p>[vc_row][vc_column][vc_column_text]Not being able to log into your dashboard is a frustrating and common issue for every WordPress site administrator. This problem can be caused by a plethora of well-known WordPress errors, such as <a href=\"https:\/\/qodeinteractive.com\/magazine\/wordpress-white-screen-of-death\/\"><em>white screen of death<\/em><\/a>, <a href=\"https:\/\/qodeinteractive.com\/magazine\/error-establishing-a-database-connection-in-wordpress\/\">error establishing database connection<\/a> and <a href=\"https:\/\/qodeinteractive.com\/magazine\/http-500-internal-server-error-in-wordpress\/\">500 internal server error<\/a>.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]Since there are so many possible causes of this issue, and each of them requires a specific solution, in this guide, we will focus on <strong>solving the WordPress login redirect loop<\/strong> sub-error. First, let\u2019s clarify what the login redirect loop error is. [\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]It is an error that happens when you repeatedly try to log in using your credentials, but the login page keeps refreshing and opening again, denying you access to your dashboard. This is a common issue and fortunately has a relatively easy and straightforward solution. To make this article easier to navigate, we\u2019ve broken it down into several steps:[\/vc_column_text][vc_empty_space height=&#8221;22px&#8221;]<ul class=\"qodef-unordered-list-item qodef-toc\">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\"><a href=\"#clearing-browser-cache\">Clearing browser cache<\/a><\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_empty_space height=&#8221;5px&#8221;]<ul class=\"qodef-unordered-list-item qodef-toc\">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\"><a href=\"#deactivating-plugins\">Deactivating your plugins<\/a><\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_empty_space height=&#8221;5px&#8221;]<ul class=\"qodef-unordered-list-item qodef-toc\">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\"><a href=\"#switching-to-a-default-wordpress-theme\">Switching to a default WordPress theme<\/a><\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_empty_space height=&#8221;5px&#8221;]<ul class=\"qodef-unordered-list-item qodef-toc\">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\"><a href=\"#deleting-the-htaccess-file\">Deleting the .htaccess file<\/a><\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_empty_space height=&#8221;5px&#8221;]<ul class=\"qodef-unordered-list-item qodef-toc\">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\"><a href=\"#editing-the-wp-config-php-file\">Editing the wp-config.php file<\/a><\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_empty_space height=&#8221;70px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h2 class=\"qodef-h4\">Confirming the issue<\/h2>\n<p>[\/vc_column_text][vc_column_text]Before troubleshooting the issue, you need to establish if it is really present. Navigate to your login page (the URL is <strong>your-site\/wp-login.php<\/strong>) and try to login by entering your WordPress username and password. Make sure that you <strong>properly type the username and the password<\/strong> and press the <strong>Log In button<\/strong>. If the page refreshes and redirects you to the login page, with the credentials deleted from their respective fields, you\u2019re dealing with a WordPress login redirect loop error.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/1-Log-In-button.jpg\" class=\"attachment-full size-full\" alt=\"Log In button\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/1-Log-In-button.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/1-Log-In-button-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/1-Log-In-button-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]Now we\u2019ll show you how to fix this error, but first &#8211; an important reminder.[\/vc_column_text][vc_empty_space height=&#8221;72px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h3 class=\"qodef-h5\">Making a Backup of Your Site<\/h3>\n<p>[\/vc_column_text][vc_column_text]Before you start troubleshooting, don\u2019t forget to <a href=\"https:\/\/qodeinteractive.com\/magazine\/how-to-manually-backup-wordpress-website\/\">make a backup of your site<\/a>, to avoid losing any important data. Then proceed to the following steps.[\/vc_column_text][vc_empty_space height=&#8221;68px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h2 class=\"qodef-h4\">Solving the Issue<\/h2>\n<p>[\/vc_column_text][vc_empty_space height=&#8221;40px&#8221;][vc_column_text]<\/p>\n<h3 class=\"qodef-h5\"><a id=\"clearing-browser-cache\"><\/a>Step 1: Clearing Browser Cache<\/h3>\n<p>[\/vc_column_text][vc_column_text]WordPress uses browser cookies for user authentication and managing sessions. However, if it\u2019s using cookies that are cached and invalid, it may lead to a redirect loop. Therefore, the simplest first step is <strong>clearing your browser\u2019s cache<\/strong>. Here\u2019s how you can do it on Google Chrome and Mozilla Firefox.[\/vc_column_text][vc_empty_space height=&#8221;23px&#8221;]<ul class=\"qodef-unordered-list-item \">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\">Google Chrome<\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_column_text]Click on the <em>three dots<\/em> in the top right corner of the screen. In the menu, select <em>History<\/em> and once again click on <em>History<\/em> that will appear within the new menu area.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/2-Google-Chrome-History.jpg\" class=\"attachment-full size-full\" alt=\"Google Chrome History\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/2-Google-Chrome-History.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/2-Google-Chrome-History-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/2-Google-Chrome-History-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]This will open a new page. <strong>Click on the Clear browsing data option in the top left corner of the screen<\/strong>.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/3-Clear-browsing-data.jpg\" class=\"attachment-full size-full\" alt=\"Clear browsing data\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/3-Clear-browsing-data.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/3-Clear-browsing-data-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/3-Clear-browsing-data-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]In the new window, click on the <em>Basic tab<\/em> and choose the time range for clearing the data. <strong>Mark both the Cookies and other site data and Cached images and files<\/strong> and click on the <em>Clear<\/em> data button.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/4-Chrome-clear-history.jpg\" class=\"attachment-full size-full\" alt=\"Chrome clear history\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/4-Chrome-clear-history.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/4-Chrome-clear-history-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/4-Chrome-clear-history-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;34px&#8221;]<ul class=\"qodef-unordered-list-item \">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\">Mozilla Firefox<\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_column_text]To <strong>clear cache in Firefox<\/strong>, click on the <em>hamburger menu<\/em> in the top right corner and select <em>Options<\/em>.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/5-Clear-cache-in-Firefox.jpg\" class=\"attachment-full size-full\" alt=\"Clear cache in Firefox\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/5-Clear-cache-in-Firefox.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/5-Clear-cache-in-Firefox-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/5-Clear-cache-in-Firefox-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]Choose the <em>Privacy &amp; Security<\/em> option in the new window.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/6-Privacy-Security-option.jpg\" class=\"attachment-full size-full\" alt=\"Privacy &amp; Security option\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/6-Privacy-Security-option.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/6-Privacy-Security-option-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/6-Privacy-Security-option-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]Scroll down to the <strong>Cookies and Site Data section<\/strong> and click on the <em>Clear Data<\/em> button.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/7-Cookies-and-Site-Data-section.jpg\" class=\"attachment-full size-full\" alt=\"Cookies and Site Data section\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/7-Cookies-and-Site-Data-section.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/7-Cookies-and-Site-Data-section-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/7-Cookies-and-Site-Data-section-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]In the small popup window, mark <strong>Cookies and Site Data<\/strong> and <strong>Cached Web Conten<\/strong>t. Finish by clicking on the <em>Clear<\/em> button.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/8-Clear-the-browser-cache.jpg\" class=\"attachment-full size-full\" alt=\"Clear the browser cache\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/8-Clear-the-browser-cache.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/8-Clear-the-browser-cache-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/8-Clear-the-browser-cache-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]After you clear the browser cache, try <strong>logging in to your dashboard<\/strong>. Since caching is the most common reason for the redirect issue, the error will probably be solved. If it isn\u2019t, move on to the following solutions.[\/vc_column_text][vc_empty_space height=&#8221;72px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h3 class=\"qodef-h5\"><a id=\"deactivating-plugins\"><\/a>Step 2: Deactivating Your Plugins<\/h3>\n<p>[\/vc_column_text][vc_column_text]Another common reason for the redirection issue is a plugin conflict. <strong>To test this, you need to deactivate all plugins and try to log in to your dashboard afterward<\/strong>. Since you cannot access the dashboard, you\u2019ll have to <a href=\"https:\/\/qodeinteractive.com\/magazine\/how-to-use-ftp\/\">deactivate the plugins via FTP<\/a> or using a control panel such as cPanel.[\/vc_column_text][vc_empty_space height=&#8221;23px&#8221;]<ul class=\"qodef-unordered-list-item \">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\">Deactivating your plugins via FTP<\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_column_text]Connect to your server using your FTP credentials. <strong>Navigate to the root WordPress directory<\/strong> (often called public_html) and <strong>find the wp-content directory inside and open it<\/strong>. Right-click on the <em>plugins folder<\/em> and select the <em>Rename<\/em> option.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/9-Deactivating-your-plugins-via-FTP.jpg\" class=\"attachment-full size-full\" alt=\"Deactivating your plugins via FTP\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/9-Deactivating-your-plugins-via-FTP.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/9-Deactivating-your-plugins-via-FTP-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/9-Deactivating-your-plugins-via-FTP-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]<strong>Rename the plugins folder (e.g. plugins.deactivated) to deactivate them. Refresh and try logging in<\/strong>. If the issue is gone, it means that the culprit is a faulty plugin.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/10-Rename-the-plugins-folder-to-deactivate-them.jpg\" class=\"attachment-full size-full\" alt=\"Rename the plugins folder to deactivate them\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/10-Rename-the-plugins-folder-to-deactivate-them.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/10-Rename-the-plugins-folder-to-deactivate-them-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/10-Rename-the-plugins-folder-to-deactivate-them-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]<strong>To pinpoint the problematic plugin, activate all plugins and then deactivate them one by one. Between each deactivation, check if the login issue has disappeared.<\/strong>[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]First, rename the previously edited folder to its original name, i.e. to plugins. This won\u2019t activate the plugins immediately, it will only give you the <strong>ability to activate them from your dashboard<\/strong>. While connected to the dashboard, navigate to <em>Plugins &gt; Installed Plugins<\/em> and <strong>activate all plugins manually<\/strong>. Afterward, <strong>log out of your dashboard<\/strong>.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]Then, connect to your server using your FTP credentials once more and navigate to this path: <strong>your-site\/wp-content\/plugins\/.<\/strong> Right-click on one of the plugins\u2019 folders and click on the <em>Rename<\/em> option.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/11-Click-on-the-Rename-option.jpg\" class=\"attachment-full size-full\" alt=\"Click on the Rename option\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/11-Click-on-the-Rename-option.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/11-Click-on-the-Rename-option-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/11-Click-on-the-Rename-option-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]<strong>Change the folder name (e.g. pluginname.deactivated). <\/strong>[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/12-Change-the-folder-name.jpg\" class=\"attachment-full size-full\" alt=\"Change the folder name\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/12-Change-the-folder-name.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/12-Change-the-folder-name-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/12-Change-the-folder-name-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]<strong>Try to log in to your dashboard again<\/strong>. If you successfully log in, the last renamed plugin can be pinpointed as the source of the issue. <strong>Repeat the same process for all plugins, one by one, until you find the faulty one.<\/strong>[\/vc_column_text][vc_empty_space height=&#8221;23px&#8221;]<ul class=\"qodef-unordered-list-item \">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\">Deactivating your plugins via cPanel<\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_column_text]Connect to cPanel using your credentials and click on the <em>File Manager<\/em> option, located in the <em>Files<\/em> section.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"710\" height=\"378\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/File-Manager.jpg\" class=\"attachment-full size-full\" alt=\"File Manager\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/File-Manager.jpg 710w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/File-Manager-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/File-Manager-620x330.jpg 620w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]<strong>Locate your root WordPress directory<\/strong> (often called public_html) and click on the <em>wp-content<\/em> directory. Right-click on the <em>plugins directory<\/em> and select the <em>Rename<\/em> option.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/14-root-WordPress-directory.png\" class=\"attachment-full size-full\" alt=\"Root WordPress directory\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/14-root-WordPress-directory.png 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/14-root-WordPress-directory-300x160.png 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/14-root-WordPress-directory-620x331.png 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;60px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/15-Wp-content-directory.jpg\" class=\"attachment-full size-full\" alt=\"Wp content directory\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/15-Wp-content-directory.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/15-Wp-content-directory-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/15-Wp-content-directory-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]<strong>Rename the plugins directory as you wish (e.g. plugins.deactivated). <\/strong>[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/16-plugins.deactivated.jpg\" class=\"attachment-full size-full\" alt=\"Plugins-deactivated\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/16-plugins.deactivated.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/16-plugins.deactivated-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/16-plugins.deactivated-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]Try to <strong>log in to your dashboard<\/strong> afterward. If you succeed, it means the<strong> issue is caused by one of the plugins<\/strong>. Pinpointing the culprit follows the same logic we\u2019ve previously described. Reactivate all your plugins and deactivate them one by one, with login attempts in between.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]Rename the plugins directory back to its original name (i.e. to plugins).[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]While you are still logged in to your dashboard, navigate to <em>Plugins &gt; Installed Plugins<\/em> and <strong>activate all the plugins manually<\/strong>. Then, log out from your dashboard.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]<strong>Connect to cPanel once more and navigate to the root WordPress directory<\/strong>. Open the <em>wp-content directory<\/em> and click on the plugins folder. Right-click on one of the plugins\u2019 folders and select the <em>Rename<\/em> option.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/17-navigate-to-the-root-WordPress-directory.jpg\" class=\"attachment-full size-full\" alt=\"Navigate to the root WordPress directory\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/17-navigate-to-the-root-WordPress-directory.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/17-navigate-to-the-root-WordPress-directory-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/17-navigate-to-the-root-WordPress-directory-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]<strong>Rename the plugin (e.g. pluginname.deactivated) and then click on the Rename File button.<\/strong>[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/18-Rename-the-plugins-directory-as-you-wish.jpg\" class=\"attachment-full size-full\" alt=\"Rename the plugins directory as you wish\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/18-Rename-the-plugins-directory-as-you-wish.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/18-Rename-the-plugins-directory-as-you-wish-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/18-Rename-the-plugins-directory-as-you-wish-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]By changing the plugin name, you are deactivating it. <strong>After each deactivation, try logging in to your dashboard<\/strong>. Once you log in successfully, you\u2019ll know that the last deactivated plugin caused the issue. <strong>Repeat the same process for all plugins, one by one, until you find the culprit.<\/strong>[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]<strong>Once you find the faulty plugin, delete it and find an alternative plugin<\/strong>. If you need this particular plugin, contact its authors for further assistance.[\/vc_column_text][vc_empty_space height=&#8221;81px&#8221;][vc_separator color=&#8221;custom&#8221; accent_color=&#8221;#f0f0f0&#8243;][vc_empty_space height=&#8221;50px&#8221;][vc_widget_sidebar sidebar_id=&#8221;top-picks-banner&#8221;][vc_empty_space height=&#8221;28px&#8221;][vc_separator color=&#8221;custom&#8221; accent_color=&#8221;#f0f0f0&#8243;][vc_empty_space height=&#8221;84px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h3 class=\"qodef-h5\"><a id=\"switching-to-a-default-wordpress-theme\"><\/a>Switching to a Default WordPress Theme<\/h3>\n<p>[\/vc_column_text][vc_column_text]A faulty WordPress theme is another common reason for this error. Most often, the issue occurs due to incompatibility with the latest WordPress version. To test this, switch your current theme to one of the default WordPress themes using FTP. If the login issue disappears, the theme is the culprit. [\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]However, there are some differences in the testing process depending on the WordPress theme you\u2019re currently using.[\/vc_column_text][vc_empty_space height=&#8221;23px&#8221;]<ul class=\"qodef-unordered-list-item \">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\">If you aren\u2019t using a default theme<\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_column_text]If you have multiple themes installed, including a default WordPress theme (e.g. Twentytwenty), you can simply deactivate the current theme via FTP. The default theme will automatically activate instead. <strong>If your following login attempt is successful, you can conclude that your current theme is the issue<\/strong>.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]To deactivate the current theme, connect to your server using your FTP credentials and locate the root WordPress directory, often called public_html. Navigate to<strong> \/wp-content\/themes\/<\/strong> directory, right-click on <strong>the folder of your current theme and select the Rename option<\/strong>.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/19-the-folder-of-your-current-theme.jpg\" class=\"attachment-full size-full\" alt=\"The folder of your current theme\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/19-the-folder-of-your-current-theme.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/19-the-folder-of-your-current-theme-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/19-the-folder-of-your-current-theme-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]<strong>Rename the theme to deactivate it. Try to log in to your dashboard afterward. <\/strong>[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/20-Rename-the-theme-to-deactivate-it.jpg\" class=\"attachment-full size-full\" alt=\"Rename the theme to deactivate it\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/20-Rename-the-theme-to-deactivate-it.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/20-Rename-the-theme-to-deactivate-it-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/20-Rename-the-theme-to-deactivate-it-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;34px&#8221;]<ul class=\"qodef-unordered-list-item \">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\">If you are using a default theme<\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_column_text]If you are already using a default WordPress theme, there are 2 options. You can <strong>upload a different default theme via FTP and then follow the steps we described in the previous section<\/strong>. The other option is to <strong>upload the latest version of your current theme to your server, overriding its files. In both cases, try logging in afterward<\/strong>.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]To upload a theme, find it in <a href=\"https:\/\/wordpress.org\/themes\/\" target=\"_blank\" rel=\"noopener\">the WordPress default theme repository<\/a> and download it. You can find a specific theme using the search filter.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/21-WordPress-default-theme-repository.jpg\" class=\"attachment-full size-full\" alt=\"WordPress default theme repository\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/21-WordPress-default-theme-repository.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/21-WordPress-default-theme-repository-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/21-WordPress-default-theme-repository-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]The downloaded files will most likely be in your <em>Downloads<\/em> folder, in a .zip file called <em>theme-name.zip<\/em>. Locate the .zip file and extract it. <strong>Connect to your server using your FTP credentials<\/strong> and navigate to the following path: <em>your-site-url\/wp-content\/themes\/<\/em>.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]Drag and drop the unzipped theme-name folder to upload it.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]<strong>Make sure not to put the folder inside the folder(s) of the existing themes!<\/strong>[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/22-put-the-folder-inside-the-folders.jpg\" class=\"attachment-full size-full\" alt=\"Put the folder inside the folder(s)\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/22-put-the-folder-inside-the-folders.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/22-put-the-folder-inside-the-folders-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/22-put-the-folder-inside-the-folders-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]<strong>If your theme caused the login issue, contact its authors for further assistance.<\/strong>[\/vc_column_text][vc_empty_space height=&#8221;72px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h3 class=\"qodef-h5\"><a id=\"deleting-the-htaccess-file\"><\/a>Step 4: Deleting the .htaccess File<\/h3>\n<p>[\/vc_column_text][vc_column_text]The .htaccess file is an important server configuration file. One of its functions is restricting access to different types of users. <strong>Therefore, a corrupt .htaccess file could cause login issues<\/strong>. In that case, the solution is to <strong>delete the current .htaccess file and create one with the default code<\/strong>. You can do this both via FTP and cPanel. Before you do this, it is extremely important to create a backup of your site, or at least .htaccess file.[\/vc_column_text][vc_empty_space height=&#8221;23px&#8221;]<ul class=\"qodef-unordered-list-item \">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\">Deleting the .htaccess file via FTP<\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_column_text]Connect to the server using your FTP credentials and navigate to the <strong>root WordPress directory<\/strong>, to the path: <strong>your-site-url\/public_html. Locate the .htaccess file, right-click on it and select Delete<\/strong>.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/23-Deleting-the-.htaccess-file-via-FTP.jpg\" class=\"attachment-full size-full\" alt=\"Deleting the htaccess file via FTP\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/23-Deleting-the-.htaccess-file-via-FTP.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/23-Deleting-the-.htaccess-file-via-FTP-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/23-Deleting-the-.htaccess-file-via-FTP-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]If you cannot find the file, enable <a href=\"https:\/\/qodeinteractive.com\/magazine\/find-htaccess-file-on-wordpress-site\/\">showing the hidden files within your FTP client<\/a> of choice. In FileZilla, you can find this option under the <em>Server<\/em> tab. It is called <strong>Force showing hidden files<\/strong>.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/05\/6-Force-showing-hidden-files.jpg\" class=\"attachment-full size-full\" alt=\"Force showing hidden files\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/05\/6-Force-showing-hidden-files.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/05\/6-Force-showing-hidden-files-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/05\/6-Force-showing-hidden-files-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;34px&#8221;]<ul class=\"qodef-unordered-list-item \">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\">Deleting the .htaccess file via cPanel<\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_column_text]Connect to the cPanel using your credentials and click on the File Manager option.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"710\" height=\"378\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/File-Manager.jpg\" class=\"attachment-full size-full\" alt=\"File Manager\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/File-Manager.jpg 710w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/File-Manager-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/File-Manager-620x330.jpg 620w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]<strong>Navigate to your root WordPress directory<\/strong>, find the .htaccess file, right-click on it and select <em>Delete<\/em>.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/25-Navigate-to-your-root-WordPress-directory.jpg\" class=\"attachment-full size-full\" alt=\"Navigate to your root WordPress directory\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/25-Navigate-to-your-root-WordPress-directory.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/25-Navigate-to-your-root-WordPress-directory-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/25-Navigate-to-your-root-WordPress-directory-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]<strong>If you cannot locate the .htaccess file, click on the <em>Settings<\/em> in the top right corner, select the <em>Show Hidden Files<\/em>(dotfiles) option and press <em>Save<\/em>.<\/strong>[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/26-1-Deleting-the-.htaccess-file.jpg\" class=\"attachment-full size-full\" alt=\"Deleting the htaccess file\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/26-1-Deleting-the-.htaccess-file.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/26-1-Deleting-the-.htaccess-file-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/26-1-Deleting-the-.htaccess-file-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;60px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/26-Deleting-the-.htaccess-file.jpg\" class=\"attachment-full size-full\" alt=\"Deleting the htaccess file\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/26-Deleting-the-.htaccess-file.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/26-Deleting-the-.htaccess-file-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/26-Deleting-the-.htaccess-file-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]If you successfully log in to your dashboard after deleting the .htaccess file, it means that a corrupted .htaccess file caused the error. To create a new, default .htaccess file, navigate to <em>Settings &gt; Permalinks<\/em> while logged into your dashboard, and click on <em>Save Changes<\/em>.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"710\" height=\"380\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/Permalinks-Settings-2.jpg\" class=\"attachment-full size-full\" alt=\"Permalinks Settings\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/Permalinks-Settings-2.jpg 710w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/Permalinks-Settings-2-300x161.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/Permalinks-Settings-2-620x332.jpg 620w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;60px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/27-Save-Permalink-Changes.jpg\" class=\"attachment-full size-full\" alt=\"Save Permalink Changes\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/27-Save-Permalink-Changes.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/27-Save-Permalink-Changes-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/27-Save-Permalink-Changes-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]<strong>If you still cannot log in, restore the previous version of the .htaccess file from the backup.<\/strong> [\/vc_column_text][vc_empty_space height=&#8221;72px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h3 class=\"qodef-h5\"><a id=\"editing-the-wp-config-php-file\"><\/a>Step 5: Editing the wp-config.php File<\/h3>\n<p>[\/vc_column_text][vc_column_text]Sometimes, defining your site\u2019s URL in the wp-config file can solve the issue. This may be the solution if you have changed your domain recently. You can edit the wp-config.php file both via FTP and cPanel.[\/vc_column_text][vc_empty_space height=&#8221;23px&#8221;]<ul class=\"qodef-unordered-list-item \">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\">Editing the wp-config.php file via FTP<\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_column_text]Connect to your server using your FTP credentials and navigate to the WordPress directory. Find the w<em>p-config.php<\/em> file, right-click it and select <em>View\/Edit<\/em>.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"710\" height=\"378\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/03\/Wp-config-edit.jpg\" class=\"attachment-full size-full\" alt=\"WP Config Edit\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/03\/Wp-config-edit.jpg 710w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/03\/Wp-config-edit-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/03\/Wp-config-edit-620x330.jpg 620w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]Open the file using a text editor and <strong>add two lines of code<\/strong> above the \/* That&#8217;s all, stop editing! Happy blogging. *\/ line. <strong>Replace the my-website.com part with your actual website URL. If your site address contains www, don\u2019t forget to add that as well<\/strong>.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;][vc_column_text]<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">define('WP_HOME','https:\/\/my-website.com');\r\ndefine('WP_SITEURL','https:\/\/my-website.com');<\/pre>\n<p>[\/vc_column_text][vc_empty_space height=&#8221;39px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/29-Replace-the-my-website.com-part.jpg\" class=\"attachment-full size-full\" alt=\"Replace the my website.com part\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/29-Replace-the-my-website.com-part.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/29-Replace-the-my-website.com-part-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/29-Replace-the-my-website.com-part-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]<strong>Save the changes, and upload the edited file back to your root WordPress directory<\/strong>, overriding the existing one.[\/vc_column_text][vc_empty_space height=&#8221;23px&#8221;]<ul class=\"qodef-unordered-list-item \">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\">Editing the wp-config.php file via cPanel<\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_column_text]Connect to<em> cPanel<\/em> using your credentials and click on the <em>File Manager<\/em> option.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"710\" height=\"378\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/File-Manager.jpg\" class=\"attachment-full size-full\" alt=\"File Manager\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/File-Manager.jpg 710w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/File-Manager-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/02\/File-Manager-620x330.jpg 620w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]<strong>Find the file in your root WordPress directory<\/strong>, right-click it and select <em>Edit<\/em>.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"710\" height=\"378\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/03\/cPanel-edit-wp-config.jpg\" class=\"attachment-full size-full\" alt=\"cPanel edit wp-config\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/03\/cPanel-edit-wp-config.jpg 710w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/03\/cPanel-edit-wp-config-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/03\/cPanel-edit-wp-config-620x330.jpg 620w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]<strong>Insert the following code above<\/strong> the \/* That&#8217;s all, stop editing! Happy blogging. *\/ line.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]Replace the my-website.com part with your actual website URL. If your site address contains www, don\u2019t forget to add that as well.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;][vc_column_text]<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">define('WP_HOME','https:\/\/my-website.com');\r\ndefine('WP_SITEURL','https:\/\/my-website.com');<\/pre>\n<p>[\/vc_column_text][vc_empty_space height=&#8221;39px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/31-Insert-the-following-code.jpg\" class=\"attachment-full size-full\" alt=\"Insert the following code\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/31-Insert-the-following-code.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/31-Insert-the-following-code-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/31-Insert-the-following-code-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]<strong>Finish by clicking on the Save Changes button in the top right corner.<\/strong>[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/32-Finish.jpg\" class=\"attachment-full size-full\" alt=\"Finish\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/32-Finish.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/32-Finish-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/04\/32-Finish-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]After editing the file, try to log in to your dashboard.[\/vc_column_text][vc_empty_space height=&#8221;72px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h3 class=\"qodef-h5\">Step 6: Contact Your Hosting Provider<\/h3>\n<p>[\/vc_column_text][vc_column_text]Although it happens rarely, in some cases, none of these methods will solve the error. In that case, <strong>contact your hosting provider for further assistance<\/strong>. Persistent login page redirecting error can be caused by issues with the server settings, database problems, faulty WordPress files, broken php.ini file, etc. Your hosting provider will help you deal with these less common causes of redirection error.[\/vc_column_text][vc_empty_space height=&#8221;72px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h2 class=\"qodef-h4\">Final Thoughts<\/h2>\n<p>[\/vc_column_text][vc_column_text]Equipped with this guide, you most likely managed to regain control of your WordPress dashboard. Furthermore, now you understand how various parts of your site can affect access to your dashboard. Since the WordPress login redirect loop is a common error, be sure to bookmark the article for future reference.[\/vc_column_text][\/vc_column][\/vc_row]<\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Is the WordPress login redirect loop error keeping your dashboard out of reach? Well, no longer! Check out our tutorial and learn how to fix this error.<\/p>\n","protected":false},"author":11229,"featured_media":6624,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[14,52,13],"class_list":["post-6583","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-core","tag-troubleshooting","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/posts\/6583","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/users\/11229"}],"replies":[{"embeddable":true,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/comments?post=6583"}],"version-history":[{"count":0,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/posts\/6583\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/media\/6624"}],"wp:attachment":[{"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/media?parent=6583"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/categories?post=6583"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/tags?post=6583"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}