{"id":4636,"date":"2018-09-06T14:01:02","date_gmt":"2018-09-06T14:01:02","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/support\/2018\/09\/06\/how-to-fix-too-many-redirects-error-in-wordpress\/"},"modified":"2021-08-16T22:26:42","modified_gmt":"2021-08-17T02:26:42","slug":"how-to-fix-too-many-redirects-error-in-wordpress","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-fix-too-many-redirects-error-in-wordpress\/","title":{"rendered":"How to Fix &#8220;Too many Redirects&#8221; Error in WordPress"},"content":{"rendered":"<p>If your WordPress site is not loading, and you see an error stating that your domain has &#8220;Redirected you too many times&#8221; or is trying to complete &#8220;Too Many Redirects&#8221;, you are caught in a <i>redirect loop<\/i>. Below, we&#8217;re going to talk about how this might have happened and ways to fix it.<\/p>\n<h2 id=\"org6876bf3\">HTTPS Redirection<\/h2>\n<p>If you&#8217;ve installed an SSL on your site, you can only use it correctly by redirecting your site traffic to the secure &#8220;https&#8221; protocol:<\/p>\n<p>This URL:<\/p>\n<pre><span style=\"color:#b3395c;\">http<\/span>:\/\/example.com<\/pre>\n<p>Becomes this URL:<\/p>\n<pre><span style=\"color:#b3395c;\">https<\/span>:\/\/example.com<\/pre>\n<p>This redirect can be added to the .htaccess file, or you can use a plugin to achieve the same effect.<\/p>\n<p>However, the https redirect can cause a loop if it conflicts with other redirects. Below, we&#8217;ve highlighted few ways you can fix that.<\/p>\n<h2 id=\"orgfbcf3d9\">Edit the URL in Your Configuration File<\/h2>\n<p>It&#8217;s possible that your site does <i>not<\/i> have an SSL installed and is falsely pointing to the https protocol. While we recommend you have an SSL installed, you will need to fix this issue first.<\/p>\n<p>You can <a href=\"https:\/\/codex.wordpress.org\/Changing_The_Site_URL\">change the site url<\/a> by adding some code to the wp-config.php file.<\/p>\n<p>You will need access to your server to edit this file. The easiest way to get there is to use the cPanel File Manager as demonstrated below:<\/p>\n<ol class=\"article_list\">\n<li>Log into <a href=\"\/support\/edu\/cpanel\/access-cpanel-via-whm\/\">cPanel<\/a><\/li>\n<li>Select <b>File Manager<\/b> under <em>Files<\/em><\/li>\n<li>Go to the <a href=\"\/support\/website\/where-to-upload-files\/\">document root<\/a> of your WordPress site<\/li>\n<li>Select the wp-config.php file and click <b>Edit<\/b> at the top of the page<\/li>\n<li>Add this code to the top of the file:\n<pre>define('WP_HOME','https:\/\/example.com'); define('WP_SITEURL','https:\/\/example.com');<\/pre>\n<p>(Making sure to replace &#8220;example.com&#8221; with your domain name)<\/li>\n<li>Save the file<\/li>\n<\/ol>\n<p>Now your site will be using the http protocol. Make sure to refresh the page.<\/p>\n<h2 id=\"org007dd9d\">Editing the URL in the Database<\/h2>\n<p>For more advanced users, you may not be willing to change your configuration. In this case, you can also perform the same procedure above in your database.<\/p>\n<ol class=\"article_list\">\n<li>Log into <a href=\"\/support\/edu\/cpanel\/access-cpanel-via-whm\/\">cPanel<\/a><\/li>\n<li>Select <b>phpMyAdmin<\/b> under <em>Databases<\/em><\/li>\n<li>Edit the <span style=\"font-family:mono;\">wp_options<\/span> table<\/li>\n<li>Change the values for <span style=\"font-family:mono;\">siteurl<\/span> and <span style=\"font-family:mono;\">home<\/span><\/li>\n<\/ol>\n<p>Now, we should have achieved the same effect as above, in which your site is using the URL specified in the database.<\/p>\n<h2 id=\"org4d62e7e\">Disable Plugins<\/h2>\n<p>It&#8217;s also possible that a plugin is causing the redirect loop. Plugins like <a href=\"https:\/\/wordpress.org\/plugins\/https-redirection\/\">Easy HTTPS Redirection<\/a> and <a href=\"https:\/\/wordpress.org\/plugins\/redirection\/\">Redirection<\/a> create redirects for you. However, possible edits made in the .htaccess file can cause conflicts. In this case, you can easily rename or delete plugins from the back end of your site.<\/p>\n<ol class=\"article_list\">\n<li>Log into <a href=\"\/support\/edu\/cpanel\/access-cpanel-via-whm\/\">cPanel<\/a><\/li>\n<li>Select <b>File Manager<\/b> under <em>Files<\/em><\/li>\n<li>Go to the <a href=\"\/support\/website\/where-to-upload-files\/\">document root<\/a> of your WordPress site<\/li>\n<li>Open the <em>wp-content<\/em> directory<\/li>\n<li>Rename the <em>plugins<\/em> directory or open it to find and delete a problematic plugin (if you know which plugin was causing the problem)<\/li>\n<\/ol>\n<p>Now, you should notice that the redirect error has stopped showing. This means one of your plugins was causing the error. Go through all of the plugins you&#8217;re currently using and make sure they are all needed and working properly. It&#8217;s always wise to do this kind of &#8220;plugin review&#8221; on a regular basis.<\/p>\n<h2>   If Problems Persist\u2026<\/h2>\n<p>You can always contact our <a href=\"\/support\/amp\/how-to-get-great-technical-support\/\">Live Support team<\/a> 24\/7. They can go through some steps with you to make sure everything on the server is normal and your domain is solid.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If your WordPress site is not loading, and you see an error stating that your domain has &#8220;Redirected you too many times&#8221; or is trying to complete &#8220;Too Many Redirects&#8221;, you are caught in a redirect loop. Below, we&#8217;re going to talk about how this might have happened and ways to fix it. HTTPS Redirection<a class=\"moretag\" href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-fix-too-many-redirects-error-in-wordpress\/\"> Read More ><\/a><\/p>\n","protected":false},"author":17,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4335,4325,56],"tags":[],"class_list":["post-4636","post","type-post","status-publish","format-standard","hentry","category-error-numbers","category-wordpress-hosting","category-wordpress"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Fix &quot;Too many Redirects&quot; Error<\/title>\n<meta name=\"description\" content=\"Learn about how to fix &quot;Too many Redirects&quot; error. You will learn several ways to troubleshoot or fix this error through editing configurations or disabling plugins.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-fix-too-many-redirects-error-in-wordpress\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Fix &quot;Too many Redirects&quot; Error\" \/>\n<meta property=\"og:description\" content=\"Learn about how to fix &quot;Too many Redirects&quot; error. You will learn several ways to troubleshoot or fix this error through editing configurations or disabling plugins.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-fix-too-many-redirects-error-in-wordpress\/\" \/>\n<meta property=\"og:site_name\" content=\"InMotion Hosting Support Center\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inmotionhosting\/\" \/>\n<meta property=\"article:published_time\" content=\"2018-09-06T14:01:02+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-08-17T02:26:42+00:00\" \/>\n<meta name=\"author\" content=\"Christopher Maiorana\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:site\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Christopher Maiorana\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-fix-too-many-redirects-error-in-wordpress\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-fix-too-many-redirects-error-in-wordpress\/\"},\"author\":{\"name\":\"Christopher Maiorana\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/c6922c56c84e17079fd558e07b7ef72f\"},\"headline\":\"How to Fix &#8220;Too many Redirects&#8221; Error in WordPress\",\"datePublished\":\"2018-09-06T14:01:02+00:00\",\"dateModified\":\"2021-08-17T02:26:42+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-fix-too-many-redirects-error-in-wordpress\/\"},\"wordCount\":552,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"articleSection\":[\"Website Error Numbers\",\"WordPress Hosting\",\"WordPress Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-fix-too-many-redirects-error-in-wordpress\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-fix-too-many-redirects-error-in-wordpress\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-fix-too-many-redirects-error-in-wordpress\/\",\"name\":\"How to Fix \\\"Too many Redirects\\\" Error\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\"},\"datePublished\":\"2018-09-06T14:01:02+00:00\",\"dateModified\":\"2021-08-17T02:26:42+00:00\",\"description\":\"Learn about how to fix \\\"Too many Redirects\\\" error. You will learn several ways to troubleshoot or fix this error through editing configurations or disabling plugins.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-fix-too-many-redirects-error-in-wordpress\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-fix-too-many-redirects-error-in-wordpress\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-fix-too-many-redirects-error-in-wordpress\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.inmotionhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Fix &#8220;Too many Redirects&#8221; Error in WordPress\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"name\":\"InMotion Hosting Support Center\",\"description\":\"Web Hosting Support &amp; Tutorials\",\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\",\"name\":\"InMotion Hosting\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"width\":696,\"height\":696,\"caption\":\"InMotion Hosting\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/inmotionhosting\/\",\"https:\/\/x.com\/InMotionHosting\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/c6922c56c84e17079fd558e07b7ef72f\",\"name\":\"Christopher Maiorana\",\"description\":\"Christopher Maiorana joined the InMotion community team in 2015 and regularly dispenses tips and tricks in the Support Center, Community Q&A, and the InMotion Hosting Blog.\",\"sameAs\":[\"https:\/\/www.linkedin.com\/in\/chris-m-4623144b\/\"],\"url\":\"https:\/\/www.inmotionhosting.com\/support\/author\/christopherm\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Fix \"Too many Redirects\" Error","description":"Learn about how to fix \"Too many Redirects\" error. You will learn several ways to troubleshoot or fix this error through editing configurations or disabling plugins.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-fix-too-many-redirects-error-in-wordpress\/","og_locale":"en_US","og_type":"article","og_title":"How to Fix \"Too many Redirects\" Error","og_description":"Learn about how to fix \"Too many Redirects\" error. You will learn several ways to troubleshoot or fix this error through editing configurations or disabling plugins.","og_url":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-fix-too-many-redirects-error-in-wordpress\/","og_site_name":"InMotion Hosting Support Center","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting\/","article_published_time":"2018-09-06T14:01:02+00:00","article_modified_time":"2021-08-17T02:26:42+00:00","author":"Christopher Maiorana","twitter_card":"summary_large_image","twitter_creator":"@InMotionHosting","twitter_site":"@InMotionHosting","twitter_misc":{"Written by":"Christopher Maiorana","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-fix-too-many-redirects-error-in-wordpress\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-fix-too-many-redirects-error-in-wordpress\/"},"author":{"name":"Christopher Maiorana","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/c6922c56c84e17079fd558e07b7ef72f"},"headline":"How to Fix &#8220;Too many Redirects&#8221; Error in WordPress","datePublished":"2018-09-06T14:01:02+00:00","dateModified":"2021-08-17T02:26:42+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-fix-too-many-redirects-error-in-wordpress\/"},"wordCount":552,"commentCount":1,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"articleSection":["Website Error Numbers","WordPress Hosting","WordPress Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-fix-too-many-redirects-error-in-wordpress\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-fix-too-many-redirects-error-in-wordpress\/","url":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-fix-too-many-redirects-error-in-wordpress\/","name":"How to Fix \"Too many Redirects\" Error","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#website"},"datePublished":"2018-09-06T14:01:02+00:00","dateModified":"2021-08-17T02:26:42+00:00","description":"Learn about how to fix \"Too many Redirects\" error. You will learn several ways to troubleshoot or fix this error through editing configurations or disabling plugins.","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-fix-too-many-redirects-error-in-wordpress\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-fix-too-many-redirects-error-in-wordpress\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-fix-too-many-redirects-error-in-wordpress\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"How to Fix &#8220;Too many Redirects&#8221; Error in WordPress"}]},{"@type":"WebSite","@id":"https:\/\/www.inmotionhosting.com\/support\/#website","url":"https:\/\/www.inmotionhosting.com\/support\/","name":"InMotion Hosting Support Center","description":"Web Hosting Support &amp; Tutorials","publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.inmotionhosting.com\/support\/#organization","name":"InMotion Hosting","url":"https:\/\/www.inmotionhosting.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","width":696,"height":696,"caption":"InMotion Hosting"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/inmotionhosting\/","https:\/\/x.com\/InMotionHosting"]},{"@type":"Person","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/c6922c56c84e17079fd558e07b7ef72f","name":"Christopher Maiorana","description":"Christopher Maiorana joined the InMotion community team in 2015 and regularly dispenses tips and tricks in the Support Center, Community Q&A, and the InMotion Hosting Blog.","sameAs":["https:\/\/www.linkedin.com\/in\/chris-m-4623144b\/"],"url":"https:\/\/www.inmotionhosting.com\/support\/author\/christopherm\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"primary_category":null,"_links":{"self":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/4636","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/comments?post=4636"}],"version-history":[{"count":2,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/4636\/revisions"}],"predecessor-version":[{"id":83630,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/4636\/revisions\/83630"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media?parent=4636"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/categories?post=4636"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/tags?post=4636"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}