{"id":495,"date":"2024-06-10T12:33:11","date_gmt":"2024-06-10T12:33:11","guid":{"rendered":"https:\/\/bestvpshosting.in\/articles\/?p=495"},"modified":"2024-06-10T12:33:13","modified_gmt":"2024-06-10T12:33:13","slug":"fix-err-too-many-redirects-error","status":"publish","type":"post","link":"https:\/\/bestvpshosting.in\/articles\/fix-err-too-many-redirects-error\/","title":{"rendered":"How to fix ERR TOO MANY REDIRECTS error in wordpress"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"err-too-many-redirects\">ERR TOO MANY REDIRECTS<\/h2>\n\n\n\n<p>The ERR TOO MANY REDIRECTS error, also known as a redirect loop, occurs when a web browser is caught in an infinite loop of redirections between different URLs. This means that the website you are trying to access is repeatedly redirecting the browser to another URL, and this process continues indefinitely until the browser halts the process and displays the error message.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"585\" src=\"https:\/\/bestvpshosting.in\/articles\/wp-content\/uploads\/2024\/06\/errorrrr-1.jpg\" alt=\"too many redirects\" class=\"wp-image-501\" srcset=\"https:\/\/bestvpshosting.in\/articles\/wp-content\/uploads\/2024\/06\/errorrrr-1.jpg 1024w, https:\/\/bestvpshosting.in\/articles\/wp-content\/uploads\/2024\/06\/errorrrr-1-300x171.jpg 300w, https:\/\/bestvpshosting.in\/articles\/wp-content\/uploads\/2024\/06\/errorrrr-1-768x439.jpg 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<div class=\"wp-block-rank-math-toc-block\" id=\"rank-math-toc\"><h2>Table of Contents<\/h2><nav><ul><li class=\"\"><a href=\"#err-too-many-redirects\">ERR TOO MANY REDIRECTS<\/a><\/li><li class=\"\"><a href=\"#what-is-err-too-many-redirects-error\">What is ERR_TOO_MANY_REDIRECTS error<\/a><ul><li class=\"\"><a href=\"#1-clear-browser-cookies-and-cache\">1. Clear Browser Cookies and Cache<\/a><\/li><li class=\"\"><a href=\"#2-check-word-press-url-settings\">2. Check WordPress URL Settings<\/a><\/li><li class=\"\"><a href=\"#3-check-htaccess-file\">3. Check .htaccess File<\/a><\/li><li class=\"\"><a href=\"#4-disable-plugins\">5. Check Theme<\/a><\/li><li class=\"\"><a href=\"#5-check-theme\">5. Check Theme<\/a><\/li><li class=\"\"><a href=\"#6-configure-ssl-settings\">6. Configure SSL Settings<\/a><\/li><li class=\"\"><a href=\"#7-define-site-and-home-url-in-wp-config-php\">7. Define Site and Home URL in wp-config.php<\/a><\/li><li class=\"\"><a href=\"#8-server-configuration\">8. Server Configuration<\/a><\/li><li class=\"\"><a href=\"#9-word-press-address-and-site-address-in-database\">9. WordPress Address and Site Address in Database<\/a><\/li><li class=\"\"><a href=\"#conclusion\">Conclusion <\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"what-is-err-too-many-redirects-error\">What is ERR_TOO_MANY_REDIRECTS error<\/h2>\n\n\n\n<p>The ERR_too many redirects error in <a href=\"https:\/\/wordpress.org\/\" target=\"_blank\" rel=\"noopener\">WordPress<\/a> is a common issue that typically results from a misconfiguration in the website&#8217;s URL settings or conflicts with plugins. Here are several steps to troubleshoot and fix this error:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"1-clear-browser-cookies-and-cache\">1. Clear Browser Cookies and Cache<\/h3>\n\n\n\n<p>Start by clearing your browser cookies and cache. Sometimes, outdated or corrupted cookies can cause redirect loops.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"2-check-word-press-url-settings\">2. Check WordPress URL Settings<\/h3>\n\n\n\n<p>Ensure that the URL settings in your WordPress dashboard are correct.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to <strong>Settings<\/strong> > <strong>General<\/strong>.<\/li>\n\n\n\n<li>Verify that the <strong>WordPress Address (URL)<\/strong> and <strong>Site Address (URL)<\/strong> are correctly set. They should match and use the correct protocol (http or https).<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"3-check-htaccess-file\">3. Check .htaccess File<\/h3>\n\n\n\n<p>The <code>.htaccess<\/code> file can sometimes cause redirect issues. To check this:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Access your website files via FTP or a file manager.<\/li>\n\n\n\n<li>Locate the <code>.htaccess<\/code> file in the root directory of your WordPress installation.<\/li>\n\n\n\n<li>Rename the <code>.htaccess<\/code> file to something like <code>.htaccess_backup<\/code> to disable it.<\/li>\n\n\n\n<li>Try accessing your site again. If it works, generate a new <code>.htaccess<\/code> file by going to <strong>Settings<\/strong> > <strong>Permalinks<\/strong> and clicking <strong>Save Changes<\/strong>.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"4-disable-plugins\">4. Disable Plugins<\/h3>\n\n\n\n<p>A plugin conflict might be causing the redirect loop. To identify the problematic plugin:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Access your website files via FTP or a file manager.<\/li>\n\n\n\n<li>Navigate to the <code>wp-content<\/code> directory and rename the <code>plugins<\/code> folder to something like <code>plugins_backup<\/code> to deactivate all plugins.<\/li>\n\n\n\n<li>Check if your site loads correctly. If it does, rename the folder back to <code>plugins<\/code> and reactivate each plugin one by one from the WordPress dashboard to identify the culprit.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"5-check-theme\">5. Check Theme<\/h3>\n\n\n\n<p>Sometimes, the theme can cause the error. To check this:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Access your website files via FTP or a file manager.<\/li>\n\n\n\n<li>Navigate to the <code>wp-content\/themes<\/code> directory and rename your active theme&#8217;s folder to something else (e.g., <code>theme_backup<\/code>).<\/li>\n\n\n\n<li>This will force WordPress to revert to a default theme like Twenty Twenty-One. Check if your site loads correctly.<\/li>\n\n\n\n<li>If it does, the issue is with your theme. You might need to update or replace it.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"6-configure-ssl-settings\">6. Configure SSL Settings<\/h3>\n\n\n\n<p>Incorrect SSL settings can lead to redirect loops, especially if you\u2019ve recently migrated from HTTP to HTTPS.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Ensure that your SSL certificate is correctly installed and configured.<\/li>\n\n\n\n<li>Use the <strong>Really Simple SSL<\/strong> plugin to handle SSL configurations automatically.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"7-define-site-and-home-url-in-wp-config-php\">7. Define Site and Home URL in wp-config.php<\/h3>\n\n\n\n<p>You can explicitly define the site URL and home URL in your <code>wp-config.php<\/code> file to override any incorrect settings.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Access your website files via FTP or a file manager.<\/li>\n\n\n\n<li>Edit the <code>wp-config.php<\/code> file and add the following lines (replace <code>https:\/\/yourdomain.com<\/code> with your actual site URL):phpCopy code<code>define('WP_HOME', 'https:\/\/yourdomain.com'); define('WP_SITEURL', 'https:\/\/yourdomain.com');<\/code><\/li>\n\n\n\n<li>Save the file and try accessing your site.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"8-server-configuration\">8. Server Configuration<\/h3>\n\n\n\n<p>Sometimes, server-level configurations (like those in the web server&#8217;s configuration files) can cause redirect loops. Check with your hosting provider to ensure that there are no <a href=\"https:\/\/bestvpshosting.in\/vps-web-hosting\/\">server<\/a>-level redirects in place.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"9-word-press-address-and-site-address-in-database\">9. WordPress Address and Site Address in Database<\/h3>\n\n\n\n<p>If you can&#8217;t access your WordPress dashboard, you can change the site URL directly in the database:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Access your database using phpMyAdmin or a similar tool.<\/li>\n\n\n\n<li>Find the <code>wp_options<\/code> table.<\/li>\n\n\n\n<li>Locate the <code>siteurl<\/code> and <code>home<\/code> rows and ensure their values are correct.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"conclusion\">Conclusion <\/h3>\n\n\n\n<p>By following these steps, you should be able to identify and resolve the ERR_TOO_MANY_REDIRECTS error in WordPress. Start with the simpler solutions (clearing cache and cookies, checking URL settings) and proceed to more advanced troubleshooting (disabling plugins, checking theme and server configurations) as needed.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>ERR TOO MANY REDIRECTS The ERR TOO MANY REDIRECTS error, also known as a redirect loop, occurs when a web browser is caught in an infinite loop of redirections between&hellip;<\/p>\n","protected":false},"author":1,"featured_media":502,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[49],"tags":[],"class_list":["post-495","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-err-too-many-redirects"],"_links":{"self":[{"href":"https:\/\/bestvpshosting.in\/articles\/wp-json\/wp\/v2\/posts\/495","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bestvpshosting.in\/articles\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bestvpshosting.in\/articles\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bestvpshosting.in\/articles\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bestvpshosting.in\/articles\/wp-json\/wp\/v2\/comments?post=495"}],"version-history":[{"count":4,"href":"https:\/\/bestvpshosting.in\/articles\/wp-json\/wp\/v2\/posts\/495\/revisions"}],"predecessor-version":[{"id":503,"href":"https:\/\/bestvpshosting.in\/articles\/wp-json\/wp\/v2\/posts\/495\/revisions\/503"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/bestvpshosting.in\/articles\/wp-json\/wp\/v2\/media\/502"}],"wp:attachment":[{"href":"https:\/\/bestvpshosting.in\/articles\/wp-json\/wp\/v2\/media?parent=495"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bestvpshosting.in\/articles\/wp-json\/wp\/v2\/categories?post=495"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bestvpshosting.in\/articles\/wp-json\/wp\/v2\/tags?post=495"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}