{"id":2021326,"date":"2024-07-24T12:48:11","date_gmt":"2024-07-24T12:48:11","guid":{"rendered":"https:\/\/wpx.net\/blog\/?p=2021326"},"modified":"2024-07-24T12:48:32","modified_gmt":"2024-07-24T12:48:32","slug":"fixing-the-wordpress-login-page-refreshing-and-redirecting-issue","status":"publish","type":"post","link":"https:\/\/wpx.net\/blog\/fixing-the-wordpress-login-page-refreshing-and-redirecting-issue\/","title":{"rendered":"Fixing the WordPress Login Page Refreshing and Redirecting Issue"},"content":{"rendered":"\n<p>Having access to your WordPress Dashboard is essential for maintaining your website and working on it in general. This article will cover a well known issue connected to the login page not working and redirecting without providing any errors. We will go through the most common causes and how you can fix each one of them.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Accessing_the_WordPress_Login_Page\"><\/span>Accessing the WordPress Login Page<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Before we dive in the root of the issue, you need to make sure that you are loading your Login Page correctly. On most common WordPress installations your wp-admin URL is the same and does not change, for example:<\/p>\n\n\n\n<p>Yourwebsite.com<strong>\/wp-admin\/<\/strong><\/p>\n\n\n\n<p>Yourwebsite.com<strong>\/wp-login.php\/<\/strong><\/p>\n\n\n\n<p>Another note for accessing your login page would be if the website is a subdomain or a subdirectory. To access that, you would need to tweak your wp-admin URL, for example:<\/p>\n\n\n\n<p>Your.subdirectory.com<strong>\/wp-admin\/<\/strong><\/p>\n\n\n\n<p>Your.subdirectory.com<strong>\/wp-login.php\/<\/strong><\/p>\n\n\n\n<p>Keep in mind that if you have customized your login page, you will need to use the specific name that is set through plugin or code.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Most_common_denominators_causing_issues_with_the_WP_Login_Page\"><\/span>Most common denominators causing issues with the WP Login Page<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>In most cases, the issue is connected to incorrect <strong>wordpress settings<\/strong> or an issue with the <strong>browser cache and cookies<\/strong>. To put it in simple terms, when you attempt to login your website, the browser sets a specific <strong>login cookie<\/strong>, which redirects you to the Dashboard if done successfully.<\/p>\n\n\n\n<p>That is set and validated after you input the correct username and password in order to login. In this case, if it fails to set it up from an incorrect username or password, or the WordPress Login URL is incorrect, then it will fail and loop you back to the login screen.<\/p>\n\n\n\n<p>Alternative reasons for the login page not working or redirecting you in a loop would be various WordPress errors connected to the database of your website or specific server errors causing downtime.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_to_fix_WordPress_Login_Page_Issue\"><\/span>How to fix WordPress Login Page Issue<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>There are a couple of things you can do, to get your login page to work and start working on your website. One of them we already covered a few clicks back with accessing the correct WP-Admin URL.<\/p>\n\n\n\n<p>We will go through a list of the main things to do before attempting to login again:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Clear your browser cache and cookies;<\/strong><\/li>\n\n\n\n<li><strong>Check and update wp-admin settings for login page;<\/strong><\/li>\n\n\n\n<li><strong>Deactivate all website plugins.<\/strong><\/li>\n<\/ul>\n\n\n\n<p>The first method is covered by accessing your browser settings and deleting browsing data cache and cookies altogether. In Google Chrome, you can use the search bar for quick access and type in <strong>Cache <\/strong>(1) and select <strong>Delete Browsing Data <\/strong>(2):<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1450\" height=\"1115\" src=\"https:\/\/wpx.net\/blog\/wp-content\/uploads\/2024\/07\/image-32.png\" alt=\"fix wordpress login page issue\" class=\"wp-image-2021329\" srcset=\"https:\/\/wpx.net\/blog\/wp-content\/uploads\/2024\/07\/image-32.png 1450w, https:\/\/wpx.net\/blog\/wp-content\/uploads\/2024\/07\/image-32-300x231.png 300w, https:\/\/wpx.net\/blog\/wp-content\/uploads\/2024\/07\/image-32-1024x787.png 1024w, https:\/\/wpx.net\/blog\/wp-content\/uploads\/2024\/07\/image-32-768x591.png 768w\" sizes=\"auto, (max-width: 1450px) 100vw, 1450px\" \/><\/figure>\n\n\n\n<p>You will get a pop-up menu with options of what exactly you want to delete. Since we are aiming to clear both cache and cookies entirely, you need to select <strong>All time <\/strong>(1) and finish the process with <strong>Delete Data <\/strong>(2):<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1027\" height=\"1225\" src=\"https:\/\/wpx.net\/blog\/wp-content\/uploads\/2024\/07\/image-35.png\" alt=\"delete browsing data\" class=\"wp-image-2021332\" srcset=\"https:\/\/wpx.net\/blog\/wp-content\/uploads\/2024\/07\/image-35.png 1027w, https:\/\/wpx.net\/blog\/wp-content\/uploads\/2024\/07\/image-35-252x300.png 252w, https:\/\/wpx.net\/blog\/wp-content\/uploads\/2024\/07\/image-35-858x1024.png 858w, https:\/\/wpx.net\/blog\/wp-content\/uploads\/2024\/07\/image-35-768x916.png 768w\" sizes=\"auto, (max-width: 1027px) 100vw, 1027px\" \/><\/figure>\n\n\n\n<p>Once that is done, you can go ahead and try to access your Website Dashboard to check if that fixed the issue. Keep in mind that by doing so, you might get logged out automatically of other websites where you have saved passwords and login set up.<\/p>\n\n\n\n<p>The second one is connected to <strong>checking the wp-admin settings<\/strong> through an FTP Client. If you are using WPX, you can use our built-in <a href=\"https:\/\/kb.wpx.net\/how-can-i-access-my-file-manager\/\"><strong>File Manager<\/strong><\/a><strong> <\/strong>for easy access to complete the task without the need of downloading or using external clients and connecting via FTP.<\/p>\n\n\n\n<p>The first step would be to locate <strong>wp-config.php<\/strong>, the file responsible for holding the wp-admin settings. That can be done with navigating through your website files. Most common path would be: <strong>public_html\/wp-config.php<\/strong>:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1588\" height=\"1112\" src=\"https:\/\/wpx.net\/blog\/wp-content\/uploads\/2024\/07\/image-37.png\" alt=\"check wp-admin settings\" class=\"wp-image-2021334\" srcset=\"https:\/\/wpx.net\/blog\/wp-content\/uploads\/2024\/07\/image-37.png 1588w, https:\/\/wpx.net\/blog\/wp-content\/uploads\/2024\/07\/image-37-300x210.png 300w, https:\/\/wpx.net\/blog\/wp-content\/uploads\/2024\/07\/image-37-1024x717.png 1024w, https:\/\/wpx.net\/blog\/wp-content\/uploads\/2024\/07\/image-37-768x538.png 768w, https:\/\/wpx.net\/blog\/wp-content\/uploads\/2024\/07\/image-37-1536x1076.png 1536w\" sizes=\"auto, (max-width: 1588px) 100vw, 1588px\" \/><\/figure>\n\n\n\n<p>Once you double-click on the file, you will enter it in <strong>Edit Mode<\/strong>. You can scroll down all the way to the end, where you will see the following code: \u201c<strong>That&#8217;s all, stop editing! Happy publishing.<\/strong>\u201d<\/p>\n\n\n\n<p>Just before that line, you can input two lines that will define the correct name of your website:<\/p>\n\n\n\n<p><strong>define(&#8216;WP_HOME&#8217;,&#8217;https:\/\/www.example.com&#8217;);<\/strong><\/p>\n\n\n\n<p><strong>define(&#8216;WP_SITEURL&#8217;,&#8217;https:\/\/www.example.com&#8217;);<\/strong><\/p>\n\n\n\n<p>Please note that you will need to change the \u201c<strong>example.com<\/strong>\u201d part with the specific name of your website in order to work.<\/p>\n\n\n\n<p>Once you have pasted the code with the correct name of your domain, then you can proceed with saving the file and changes:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1600\" height=\"1271\" src=\"https:\/\/wpx.net\/blog\/wp-content\/uploads\/2024\/07\/image-39.png\" alt=\"fixing wordpress login page issue\" class=\"wp-image-2021336\" srcset=\"https:\/\/wpx.net\/blog\/wp-content\/uploads\/2024\/07\/image-39.png 1600w, https:\/\/wpx.net\/blog\/wp-content\/uploads\/2024\/07\/image-39-300x238.png 300w, https:\/\/wpx.net\/blog\/wp-content\/uploads\/2024\/07\/image-39-1024x813.png 1024w, https:\/\/wpx.net\/blog\/wp-content\/uploads\/2024\/07\/image-39-768x610.png 768w, https:\/\/wpx.net\/blog\/wp-content\/uploads\/2024\/07\/image-39-1536x1220.png 1536w\" sizes=\"auto, (max-width: 1600px) 100vw, 1600px\" \/><\/figure>\n\n\n\n<p>When the changes are saved, you can check and try to login your website to see if that fixed the issue.<\/p>\n\n\n\n<p>The third and final most common fix for the issue is connected to <strong>disabling your website plugins<\/strong>. Another thing that may be causing issues with your Login Page is a plugin that is not working as expected. If you do not see a specific error and it keeps redirecting you, then you will need to stop all of them in order to troubleshoot if that is the issue.<\/p>\n\n\n\n<p>To do that, you can use an FTP Client or our built-in File Manager as in the previous steps with locating and adjusting wp-admin settings. The main step here would be to locate the <strong>plugins folder<\/strong>. In most cases, it is located within the specific WordPress path: <strong>public_html\/wp-content\/plugins<\/strong>:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1585\" height=\"1145\" src=\"https:\/\/wpx.net\/blog\/wp-content\/uploads\/2024\/07\/image-38.png\" alt=\"disable plugins\" class=\"wp-image-2021335\" srcset=\"https:\/\/wpx.net\/blog\/wp-content\/uploads\/2024\/07\/image-38.png 1585w, https:\/\/wpx.net\/blog\/wp-content\/uploads\/2024\/07\/image-38-300x217.png 300w, https:\/\/wpx.net\/blog\/wp-content\/uploads\/2024\/07\/image-38-1024x740.png 1024w, https:\/\/wpx.net\/blog\/wp-content\/uploads\/2024\/07\/image-38-768x555.png 768w, https:\/\/wpx.net\/blog\/wp-content\/uploads\/2024\/07\/image-38-1536x1110.png 1536w\" sizes=\"auto, (max-width: 1585px) 100vw, 1585px\" \/><\/figure>\n\n\n\n<p>Once you have located the plugins folder, you can simply select it by ticking the white box next to it:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1593\" height=\"1096\" src=\"https:\/\/wpx.net\/blog\/wp-content\/uploads\/2024\/07\/image-34.png\" alt=\"disable plugins\" class=\"wp-image-2021331\" srcset=\"https:\/\/wpx.net\/blog\/wp-content\/uploads\/2024\/07\/image-34.png 1593w, https:\/\/wpx.net\/blog\/wp-content\/uploads\/2024\/07\/image-34-300x206.png 300w, https:\/\/wpx.net\/blog\/wp-content\/uploads\/2024\/07\/image-34-1024x705.png 1024w, https:\/\/wpx.net\/blog\/wp-content\/uploads\/2024\/07\/image-34-768x528.png 768w, https:\/\/wpx.net\/blog\/wp-content\/uploads\/2024\/07\/image-34-1536x1057.png 1536w\" sizes=\"auto, (max-width: 1593px) 100vw, 1593px\" \/><\/figure>\n\n\n\n<p>The final step would be to rename<strong> <\/strong>the folder in order to disable all the plugins currently installed on your website. That can happen by right-clicking on the folder and selecting option <strong>Rename<\/strong>:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1077\" height=\"1051\" src=\"https:\/\/wpx.net\/blog\/wp-content\/uploads\/2024\/07\/image-36.png\" alt=\"rename folder\" class=\"wp-image-2021333\" srcset=\"https:\/\/wpx.net\/blog\/wp-content\/uploads\/2024\/07\/image-36.png 1077w, https:\/\/wpx.net\/blog\/wp-content\/uploads\/2024\/07\/image-36-300x293.png 300w, https:\/\/wpx.net\/blog\/wp-content\/uploads\/2024\/07\/image-36-1024x999.png 1024w, https:\/\/wpx.net\/blog\/wp-content\/uploads\/2024\/07\/image-36-768x749.png 768w\" sizes=\"auto, (max-width: 1077px) 100vw, 1077px\" \/><\/figure>\n\n\n\n<p>You will see a pop-up tab, where you can simple input the following name: <strong>plugins-stop<\/strong> and <strong>OK<\/strong> in order to make it work:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1306\" height=\"467\" src=\"https:\/\/wpx.net\/blog\/wp-content\/uploads\/2024\/07\/image-33.png\" alt=\"rename folder\" class=\"wp-image-2021330\" srcset=\"https:\/\/wpx.net\/blog\/wp-content\/uploads\/2024\/07\/image-33.png 1306w, https:\/\/wpx.net\/blog\/wp-content\/uploads\/2024\/07\/image-33-300x107.png 300w, https:\/\/wpx.net\/blog\/wp-content\/uploads\/2024\/07\/image-33-1024x366.png 1024w, https:\/\/wpx.net\/blog\/wp-content\/uploads\/2024\/07\/image-33-768x275.png 768w\" sizes=\"auto, (max-width: 1306px) 100vw, 1306px\" \/><\/figure>\n\n\n\n<p>Once that is completed, you can try to access and login your website to see if that fixed the issue.<\/p>\n\n\n\n<p>That\u2019s it! These are the most common fixes which you can implement in order to resolve the redirect of the Login Page. If you are still not seeing progress or in need of any help for your website, do not hesitate to contact our WPX Support which are available 24\/7 via chat or ticket.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Having access to your WordPress Dashboard is essential for maintaining your website and working on it in general. This article will cover a well known issue connected to the login page not working and redirecting without providing any errors. We will go through the most common causes and how you can fix each one of [&hellip;]<\/p>\n","protected":false},"author":14,"featured_media":2021327,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"cybocfi_hide_featured_image":"","footnotes":""},"categories":[86],"tags":[138,145,139,121],"ppma_author":[150],"class_list":["post-2021326","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress","tag-guide","tag-how-to","tag-step-by-step","tag-wordpress"],"blocksy_meta":[],"authors":[{"term_id":150,"user_id":29,"is_guest":0,"slug":"svetlozar-todorov","display_name":"Svetlozar Todorov","avatar_url":{"url":"https:\/\/wpx.net\/blog\/wp-content\/uploads\/2024\/07\/Profile-Picture.png","url2x":"https:\/\/wpx.net\/blog\/wp-content\/uploads\/2024\/07\/Profile-Picture.png"},"0":null,"1":"","2":"","3":"","4":"","5":"","6":"","7":"","8":""}],"_links":{"self":[{"href":"https:\/\/wpx.net\/blog\/wp-json\/wp\/v2\/posts\/2021326","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpx.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpx.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpx.net\/blog\/wp-json\/wp\/v2\/users\/14"}],"replies":[{"embeddable":true,"href":"https:\/\/wpx.net\/blog\/wp-json\/wp\/v2\/comments?post=2021326"}],"version-history":[{"count":3,"href":"https:\/\/wpx.net\/blog\/wp-json\/wp\/v2\/posts\/2021326\/revisions"}],"predecessor-version":[{"id":2021338,"href":"https:\/\/wpx.net\/blog\/wp-json\/wp\/v2\/posts\/2021326\/revisions\/2021338"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wpx.net\/blog\/wp-json\/wp\/v2\/media\/2021327"}],"wp:attachment":[{"href":"https:\/\/wpx.net\/blog\/wp-json\/wp\/v2\/media?parent=2021326"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpx.net\/blog\/wp-json\/wp\/v2\/categories?post=2021326"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpx.net\/blog\/wp-json\/wp\/v2\/tags?post=2021326"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/wpx.net\/blog\/wp-json\/wp\/v2\/ppma_author?post=2021326"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}