How to Easily Find And Fix Redirect Loops Error in WordPress?
Aug 14, 2023
How to Easily Find And Fix Redirect Loops Error in WordPress?
If the webpages served to the users keep redirecting back and forth, technically in a redirect loop, then eventually your visitors would leave your website and search engines are unlikely to get these pages indexed. To learn how to fix: https://rankmath.com/blog/fix-redirec … In this video, we’ll walk you through the various methods to find and fix redirect loops on your website. Timestamps 0:00 - Introduction 1:47 - How to Find Redirect Loops 2:51 - Fix: Clear Browser Cache 3:26 - Fix: Clear WordPress Site Cache 3:46 - Fix: Check HTTPS Settings 4:12 - Fix: Setup Redirects correctly 4:40 - Fix: Restore .htaccess file 5:18 - Fix: Temporarily disable WP plugins Tools to Find Redirect Loops: ► https://www.semrush.com/ ► https://chrome.google.com/webstore/de … ► https://www.serpworx.com/ Install SSL Certificate for FREE: ► https://mythemeshop.com/blog/lets-enc … If you enjoyed watching this video, then don’t forget to hit the like \u0026 subscribe button for more. Rank Math, the Swiss Army Knife of WordPress SEO, can take your SEO game to the next level. Rank Math already goes above and beyond other top-rated SEO plugins. Do you want to see the magic unfold for your website? ► Visit Rank Math today: https://rankmath.com Here’s are 40+ unique features that set Rank Math apart: ► https://rankmath.com/blog/unique-rank … Rank Math Links: ► Knowledge Base: https://rankmath.com/kb/wordpress/seo … Connect with Rank Math: ► https://www.facebook.com/groups/rankm … ► https://twitter.com/rankmathseo ► https://www.linkedin.com/company/rank …
Content
0.2 -> So you opened a page on your WordPress
site and received the message
3.93 -> "too many redirects", instead
of the page Loading normally.
7.513 -> This message usually appears if
your site gets stuck in a redirect loop.
11.886 -> Hi, I'm Kate and I'm about to show you how
14.43 -> to solve this error
with a few simple steps.
16.901 -> The error message appears differently
19.08 -> in different browsers,
often with no other information.
22.43 -> So let's understand what
a redirect loop is.
25.415 -> Also known as a closed chain of redirects,
28.13 -> this happens when one URL gets redirected
to another URL, which could even redirect
33.021 -> to another URL and the last page of the
cycle redirects back to the original one.
37.857 -> A common cause of redirect loops
is poor redirect configuration,
41.842 -> whether in the content management system,
44.05 -> your server, or if these
two systems are misaligned.
47.571 -> If you had set up a redirect from URL X
to URL Y in your Web server's configuration,
52.915 -> but then set up a redirect
from URL Y to URL X in your redirect
57.101 -> manager, you'd create a redirect
loop that causes this error.
60.929 -> Redirect loops are bad for SEO because
instead of viewing the destination page,
65.44 -> the visitors will come across the error
message and, obviously, leave the page.
70.08 -> The same thing will happen
to search engines:
72.352 -> once they understand they're
locked in a redirect loop,
74.93 -> they'll stop following the redirects
and never reach the destination page.
79.13 -> A closed redirect chain passes ranking
81.37 -> signals such as link authority
and relevance from one URL to another,
85.472 -> and this process never ends because
the ultimate URL never resolves.
89.857 -> As a result, those
ranking signals are lost.
92.557 -> They affect your website's usability and
crawlability, damaging your SEO efforts.
97.93 -> Now that we understand redirect loops,
100.09 -> let's learn how to find them and a few
different steps you can take to fix them.
104.13 -> You can skip to specific solutions
with the timestamps in the description.
108.129 -> Always start debugging redirect loops
by deleting your browser cache because it
112.21 -> might contain outdated redirects
that could lead to false positives.
115.943 -> Rank Math SEO, a free WordPress plugin,
helps find the redirect loops
120.31 -> with the "Debug Redirections" feature.
122.6 -> You'll have to start by activating
the redirections module on the dashboard.
126.73 -> Next, go to Redirections settings,
which are in Rank Math's General Settings.
130.93 -> Activate the first feature,
Debug Redirections.
134.186 -> Now try to access the redirect loop.
136.97 -> An interstitial page will
appear for 5 seconds.
139.915 -> Click on Manage this redirection to view
the rules for this specific redirection.
144.557 -> We left links for three external tools
that you can also use to check
148.072 -> the redirect loops in this
video's description.
150.7 -> The first is the Semrush Site Audit tool.
153.69 -> The second is the Redirect Path browser
plugin, which shows you where a URL
157.76 -> directs to so you can find
a beginning for the loop.
160.81 -> Third is Serpwox, which does two jobs:
163.69 -> it checks all versions of the URL
for redirects, and it provides a score
167.61 -> that lets you know how many
redirects are active for that URL.
170.972 -> The website itself doesn't
always cause redirect issues.
174.614 -> There can also be issues caused
by the browser being accessed to use it.
178.615 -> So our first step to redirect loops
is clearing your browser cookies.
183.01 -> Cookies are a type of saved data that your
185.11 -> browser uses to speed up
the loading of websites.
187.943 -> Depending on the browser you use,
this process will function differently.
192.24 -> You can erase cookies in Google Chrome
by going to History, Clear browsing data.
196.841 -> Select the option "Cookies and other
site data" in the pop up menu,
200.43 -> then click on Clear Data.
202.214 -> Once you're done, restart your browser
and see if the website loads properly.
206.386 -> If clearing your cookies doesn't work,
208.29 -> the next step is purging
your WordPress cache.
210.9 -> If the type of redirect loop
doesn't stop your access
213.515 -> to the WordPress Admin Dashboard,
215.44 -> you should clear the cache
from your Caching plugin Settings.
218.371 -> For instance, if you're using W3
Total Cache, navigate to the
222.04 -> Performance tab in the Admin toolbar
and click on Purge all Caches.
226.243 -> You can also double check
your HTTPS settings.
229.501 -> Many times the error occurs when people
231.81 -> have just finished migrating their
WordPress site from HTTP to HTTPS
236.41 -> and either didn't finish or
didn't set it up properly.
239.68 -> You'll instantly throw your WordPress site
into a redirection loop if you force it
243.75 -> to load over HTTPS without first
installing an SSL certificate,
247.844 -> so make sure to install an SSL certificate
on your WordPress site to fix this.
252.229 -> If clearing the cache and cookies on your
254.11 -> site didn't fix the problem,
check if redirects are set up correctly.
257.829 -> Start by deactivating any redirect related
260.443 -> solutions that you've installed
to see if that solves the problem.
263.387 -> If you use Rank Math SEO,
265.28 -> you can set up redirects straight from
the plugin, even in the free version.
269.071 -> Start by activating the Redirections
module in Rank Math's Dashboard.
272.887 -> You'll find Redirections
in Rank Math's submenu.
275.92 -> You can learn all about setting up
277.444 -> redirects with the video
that's on the card.
280.04 -> A redirect loop could also be caused
by specific changes to the
283.244 -> Hypertext Access file, also known
as the .htaccess file.
287.287 -> To create a new .htaccess file,
you'll need to rename
290.59 -> the file and create a new one
using FTP or your web host cPanel.
294.88 -> The .htaccess file will be
in the public_html folder.
298.979 -> First, right-click on it and rename it to
.htaccess_old so you have a backup of it.
304.686 -> Next, create a new text
file and name it .htaccess.
308.57 -> Copy this code from the blog post
310.301 -> that corresponds to this video,
which we left a link to in the description.
313.872 -> Paste into the file, save the changes,
and upload it to your root folder.
318.25 -> The last solution we'll suggest is
disabling all your plugins,
321.244 -> because if one of them was incorrectly
installed, it could cause redirect issues.
325.857 -> If you can still access your website,
you can investigate if a plugin is causing
329.88 -> a redirect loop without
your visitors noticing
332.16 -> with the Health Check and Troubleshooting
plugin created by the WordPress community.
335.914 -> We'll have a solution for those who can't
access the dashboard in a little bit.
339.557 -> So let's access the Add New
page of the Plugins section.
342.76 -> Enter Health Check in the search bar
on the top right corner and click
346.21 -> on "Install" and "Activate" Health
check and troubleshooting.
349.25 -> Now the Site Health tool will have two
new tabs: Troubleshooting and Tools.
353.887 -> Open the Troubleshooting tab and click
on Enable Troubleshooting Mode.
357.89 -> The alterations you make to the website
will not appear to your visitors.
361.53 -> This will deactivate all the plugins.
If you don't see the error
365.03 -> when no plugins are active,
it's time to start activating each plugin
368.63 -> individually until you find the one
that causes the redirect loop.
372.286 -> If you can't access the WordPress admin
area, open your site files in the web host's
377.001 -> cPanel or login to your site
using the FTP protocol.
380.6 -> Open the wp-content folder,
then enter the plugins folder.
384.429 -> Rename the folder to anything else, like
386.915 -> "plugins-date" to instantly
disable all of the plugins.
390.801 -> If your site is now functional, one of
your plugins is causing the redirect loop.
395.2 -> To locate the cause, change the
name of your plugins folder
397.73 -> back to plugins, then rename one of the
plugin's folders and reload your site.
403.043 -> Repeat these steps for each plugin
404.97 -> until you find the one that's
causing the chain of redirects.
408.014 -> If this tutorial helped
you, give it a like.
410.829 -> If you have any questions,
412.36 -> click on the link in the description
to open a free support ticket.
415.69 -> You can find more tutorials in our
Knowledge Base, at rankmath.com/kb/
Source: https://www.youtube.com/watch?v=CoYS0ENV4Sk