Err_Too_Many_Redirects in WordPress: How to Fix It in 2 ...

文章推薦指數: 80 %
投票人數:10人

Seeing ERR_TOO_MANY_REDIRECTS in WordPress could mean that key pages are unavailable to your users. Resolving this problem quickly is vital. WPBuffsBlog| Howto Err_Too_Many_RedirectsinWordPress:HowtoFixItin2Minutes November3,2021 |by WillMorris  Subscribe  YouTube  WPCOMMUNITY  eBooks Menu  Subscribe  YouTube  WPCOMMUNITY  eBooks Bookacall Inanutshell,errorsthatpreventusersfromaccessingyourcontentcanleadtolostrevenueandcredibilitywithyourvisitors.TheERR_TOO_MANY_REDIRECTSerrorinWordPressisonesuchproblemthatcanleaveyou,yourusers,andyourwebsiteitselfreeling. Whilegettingcaughtinaredirectloopiscertainlybadnews,you’llberelievedtohearthatinmostcasesitcanberesolvedwithaquick,two-minutefix.Ifthestandardsolutiondoesn’twork,therearestillalternativemethodsyoucantry. ThispostwillexplaintherootcauseofERR_TOO_MANY_REDIRECTSinWordPress,andhowtofixitinjusttwominutes.Thenwe’llprovidesomeadditionalsolutionsyoucantryifthefirstonedoesn’ttakecareoftheissue.Let’sdivein! InThisArticle🔮 AnIntroductiontoERR_TOO_MANY_REDIRECTSinWordPressERR_TOO_MANY_REDIRECTSinWordPress:HowtoFixItinTwoMinutesAlternativeSolutionsforERR_TOO_MANY_REDIRECTSinWordPressWrappingUp OurteamatWPBuffshelpswebsiteowners,agencypartners,andfreelancerpartnersresolveerrorsontheirWordPresssites24/7.Whetheryouneedustomanage1websiteorsupport1,000clientsites,we’vegotyourback. AnIntroductiontoERR_TOO_MANY_REDIRECTSinWordPress💫 InordertounderstandwhatishappeningwhenyouseeERR_TOO_MANY_REDIRECTSinWordPress,youfirstneedtounderstandwhata‘redirect’is.ThisisaprocessbywhichoneURLismadetopointtoanother.It’sfrequentlyusedwhenapostorpageismovedtoanewaddress,orwhenyouchangethedefaultpermalinkstructureofyoursite. So,forinstance,ifyouhaveapostathttps://example.com/2020/11/new-postandchangedthepermalinktohttps://example.com/new-post,youwouldwanttosetuparedirectfromtheformerURLtothelatter.Therefore,avisitorlookingforthiscontentattheoldaddresswillbeautomaticallytakentothenewoneinsteadofa404errorpage. WhenyouseetheERR_TOO_MANY_REDIRECTSalert,thismeansthepageyou’retryingtoaccessiscaughtina‘redirectloop’.Forexample,imagineyou’retryingtoreachPageA.However,PageAisbeingredirectedtoPageB,whichinturnissetuptoredirectbacktoPageA.Thesepagesarecaughtinaninfiniteloop,makingitimpossibleforyoutoreachyourdesireddestination.Toomanyredirects,indeed. 🔁Redirectloopscanpreventyourusersfromreachingyourcontent.Resolvingthemquicklyiskey!#WordPressClickToTweet ThismayresultinawhitescreenwiththeERR_TOO_MANY_REDIRECTSalertonit.However,itmayalsoresultina404errorpage: IfyouhaveintentionallysetupredirectsonyourWordPresssite(suchaswithapluginlikeRedirection),you’dbewisetocheckthemafterseeingERR_TOO_MANY_REDIRECTStomakesureyouhaven’tunintentionallycreatedaloop.However,themostcommoncauseofthisissuecanbefoundinyoursite’ssettings. ERR_TOO_MANY_REDIRECTSinWordPress:HowtoFixItinTwoMinutes⏱️ Whileclearinguparedirectloopmayseemintimidating,it’softentheresultofasimpleproblemwithyourWordPresssettings. ⏲️Inmostcases,youcanresolvetheERR_TOO_MANY_REDIRECTSalertinjusttwominutes!#WordPressClickToTweet Toenactthisquickfix,navigateto Settings>GeneralinyourWordPressdashboard: You’llthenneedtolookforyour WordPressAddress(URL)andyour SiteAddress(URL): YourWordPressAddressindicatesthelocationofyourWordPresscoreinstallation.Your SiteAddressisthedomainyouwantuserstotypeintotheirbrowsersinordertoaccessyoursite.It’simportanttheymatchexactly.Otherwise,theymaycreatearedirectloop. ThiscanincludeelementssuchasHTTP(S)and www.Inotherwords,ifyour WordPressAddressdoesnotinclude wwwbeforeyourdomain,yourSiteAddressshouldn’teither. Ifthecontentsofthesetwofieldsdon’tmatch,editthemsothattheydo.ThenclickontheSaveChangesbuttonatthebottomofthe Settingsscreen: Next,checkyoursite.TheERR_TOO_MANY_REDIRECTSalertor404errorpageshouldbereplacedwiththecorrectcontent. AlternativeSolutionsforERR_TOO_MANY_REDIRECTSinWordPress(7Methods)🤘 Whilethetwo-minutefixdescribedaboveworksinmostsituations,itdoesn’talwaysresolvetheERR_TOO_MANY_REDIRECTSalert.Ifitdidn’tworkforyouandyoucan’tfindthesourceoftheredirectloop,youmaywanttotryoneofthesealternativesolutions. ChangetheWordPressandSiteURLsWithoutAccesstoWPAdminDeleteYourBrowserCookiesClearYourServer,Proxy,andBrowserCachesCheckforPluginConflictsReplaceYour.htaccessFileAskYourHosttoCheckYourNginxConfigFileRemoveSecureSocketsLayer(SSL)RedirectsfromYourOriginServer(Cloudflare) 1.ChangetheWordPressandSiteURLsWithoutAccesstoWPAdmin Insomecases,WordPresserrorscanpreventyoufromaccessingyourAdminarea.Ifthishappens,youwon’tbeabletogettoyourgeneralsettingstocheckyour WordPressand SiteAddresses.Fortunately,withalittleextraeffort,youcanstillensurethattheymatch. Thisinvolveseditingyour wp-config.phpfileviaFileTransferProtocol(FTP).Anytimeyoucarryoutthiskindoftask,it’swisetomakeabackupofyoursitefirst. Then,accessyourpreferredFTPclient.Somehostsprovideoneforyou,oryoucanuseanopen-sourceoptionsuchasFileZilla: Toconnecttoyourserver,you’llneedtoretrieveyourFTPcredentialsfromyourhostingaccount.They’reusuallyfairlyeasytofindandinclude: Hostname:Thenameassociatedwiththeserveryou’retryingtoconnectto.Username:Usuallyyoursite’sdomainname.Password:Yoursite’spassword(notyourWordPresspassword).Port:Thepointofaccessyouwanttousetoestablishaconnectionwithyourserver–thedefaultis21. Enterthemintherelevantfields,thenlaunchyourconnection.Next,navigatetothepublic_htmldirectoryonyourserver: Openit,thenfindyour wp-config.phpfile.Right-clickonitandselectView/Edit: Lookforthelinesthatread: define('WP_SITEURL','https://example.com'); define('WP_HOME','https://example.com'); MakesurethattheURLsmatch–iftheydon’t,youshouldchangethem.Intheeventthattheselinesaren’tinyourwp-config.phpfile,youcanaddthemabovethelinereadingThat’sall,stopediting!Happypublishing. Then,saveandclosethefile.YoushouldreceiveapromptfromFileZillatoreuploadwp-config.phptoyourserver: Select Yes,thenclosetheconnection.ThisshouldresolvetheERR_TOO_MANY_REDIRECTSissue. 2.DeleteYourBrowserCookies Browsercookiescanbeusefulinsomesituations,butothertimestheymaycontainfaultydata.ThiscanresultintoomanyHTTPredirects,preventingyouoryourusersfromaccessingcertainpages.Whetheryou’reattemptingtoreachyourownsiteoranotherone,clearingyourbrowsercookiescanhelp. Thisprocesswillvaryslightlydependingonwhichbrowseryou’reusing.BelowarethestepsforclearingcookiesinGoogleChrome. First,openthebrowser’ssettingsbyclickingonthethree-doticoninthetoprightcornerofthewindow.Then,selectSettings: Ontheresultingpage,clickonthe Advanceddrop-down: Then,clickon PrivacyandSecurity: Fromthelist,select Clearbrowsingdata: Awindowwillopen,inwhichyoushouldselectthecheckboxnextto Cookiesandothersitedata.Thenclickonthe Cleardatabutton: YoucanusetheTimerangedrop-downinordertoavoidclearingallthecookiesstoredinChrome.It’salsoimportanttonotethatcarryingoutthischangewillsignyououtofanyaccountsyou’recurrentlyloggedintoanderaseanysavedpasswords. Usingapasswordmanagementtooltokeeptrackofyourlogincredentialsiswiseforsecurityreasons,andcanhelpyouavoidthisproblem. 3.ClearYourServer,Proxy,andBrowserCaches ‘Caching’istheprocessofsavingsnapshotsofwebpagessoyoucanloadthemmorequicklyinthefuture.Insomeinstances,redirectloopsmaybecached.ThiswillcauseERR_TOO_MANY_REDIRECTStoappearevenifyou’veresolvedthecauseoftheproblem. Tofixit,you’llneedtoclearyourcaches(orinstructyouruserstodoso,ifthey’recontactingyouinreferencetothiserror).Therearemanypotentialcachesyoumayhavesaved,sobesuretocheckallpossiblesourceswhencarryingoutthisstep. Clearingyourserver’scachewilllikelyrequireyoutologintoyourhostingaccount.Somehosts–includingKinsta*andWPEngine*–mayalsoincludeanoptiontoclearyourservercachefromyourWordPressdashboard. You’llalsoneedtoclearthecacheofanycachingpluginyouhaveinstalledonyoursite,suchasWPFastestCacheorW3TotalCache: Generally,theoptiontoclearyourcacheforpluginssuchasthesecanbefoundintheirsettings. Finally,clearingyourbrowsercachealsovariesdependingonyourpreferredplatform.InGoogleChrome,youcanfollowthesamestepslistedaboveforclearingyourcookies.However,inthe Clearbrowsingdatawindow,selectthecheckboxnextto Cachedimagesandfiles: Onceyou’veclearedanyrelevantcaches,checkyoursiteagaintoseeiftheerrorpersists.ThismethodcanalsohelpyoueliminatetheERR_TOO_MANY_REDIRECTSalertonothersites,shouldyouencounterit. 4.CheckforPluginConflicts Pluginconflictsareunfortunatelyacommoncauseofmanyerrors.Ifyouaren’tsurewhichextensionsmaybeproducingERR_TOO_MANY_REDIRECTSinWordPress,youcanfollowthesestepstodeterminethesourceoftheproblem. First,deactivateallyourplugins.Youcandothisinbulkfrom Plugins>InstalledPluginsinyourdashboard: Ifyoudon’thaveaccesstoyourdashboard,youcanalsodeactivatepluginsviaFTP.Connecttoyourserver,thennavigateto public_html>wp-content>plugins: Here,renameeachofyourpluginsubdirectoriestosomethinglike,“plugin-name-deactivated”: Next,reactivateyourpluginsone-by-one.YoucandothisbyeitherclickingontheActivateoptioninyourdashboardPluginslistorbychangingthefilenamebackviaFTP. Betweenreactivations,checkyoursitetoseeiftheERR_TOO_MANY_REDIRECTSalerthasappearedagain.Onceitdoes,you’llknowthemostrecentlyactivatedpluginistheculprit.Ideally,you’llwanttoremoveorreplacethistool. 5.ReplaceYour.htaccessFile EspeciallyinGoogleChrome,Firefox,andSafari,yoursite’s .htaccessfilemaybethesourceofERR_TOO_MANY_REDIRECTSinWordPress.Replacingyourcorruptversionmayresolvetheissue. Todoso,firstaccessabackupcopyofyour .htaccessfilethatisnotcorrupt.Alternatively,youcanalsoacquireafreshcopybydownloadingWordPressandextracting .htaccessfromthecorefiles.Notethatthismethodwillcauseyoutoloseanycustomcodeyou’veaddedinthisfile. You’llneedtouseFTPforthismethodaswell.Connecttoyourserver,thenlocateyour .htaccessfile: Ifyoudon’tseeit,you’llneedtodeterminehowtoshowhiddenfilesinyourFTPclientofchoice.InFileZilla,youcandosobyselecting Server>Forceshowinghiddenfilesinthetoolbar: Onceyou’vefoundit,deleteyourexisting .htaccessfile: Then,uploadthebackuporfreshcopyyouaccessedearlier.CheckbackwithyoursitetoseeiftheERR_TOO_MANY_REDIRECTSalertisstillpresent. 6.AskYourHosttoCheckYourNginxConfigFile IfyourhostingproviderusesNginx,there’sapossibilitythatyourserver’sconfigurationiscausingERR_TOO_MANY_REDIRECTStoappear.Unfortunately,there’snothingmuchyoucandoaboutthisonyourown. Instead,you’llneedtocontactyourhostandaskthemtocheckyourNginxconfigfile.Thesupportteamshouldbeabletodeterminewhatthesourceoftheproblemisfromthere,ifitisindeedanissuewithyourserver. 7.RemoveSecureSocketsLayers(SSL)RedirectsfromYourOriginServer(Cloudflare) Finally,there’sanotherpossiblesolutionforusersofCloudflare,awebsecurityandperformanceplatform: OnefeatureCloudflareofferstohelpsecureyoursiteisSSLcertificates.Installingonewillpreventhackersfrom‘listeningin’onyourwebsite’sconnections.Thiscanhelppreventstolendata.YoucantellawebsitehasanSSLcertificateinstalledwhenit’susingHyperTextTransferProtocolSecure(HTTPS)insteadofHTTP. Unfortunately,Cloudflare’sSSLoptionscansometimescauseredirectloops.ThishappenswhentheplatformtriestoredirectURLsusingHTTPtoonesusingHTTPS.Thesolutionistoremovetheseredirectsfromyouroriginwebserver(i.e.,theserverprovidedbyyourhostingcompany). Alternatively,youmayalsohavearedirectloopsetupinyourCloudflarePageRules.Accessthisappandlookforanyinstanceswheretwopageshavebeensetuptopointbacktooneanother.Ifsuchaproblemexists,edittherulestoeliminatetheloop. Finally,ifyou’reusingCloudflarewithyourWordPresssite,it’swisetoinstalltheCloudflareplugin.It includesanoptiontoenableAutomaticHTTPSrewrites,whichshouldpreventmixedcontentwarningsaswellasERR_TOO_MANY_REDIRECTSinWordPress. WrappingUp🌯 SeeingERR_TOO_MANY_REDIRECTSinWordPresscouldmeanthatkeypagesareunavailabletoyourusers.Resolvingthisproblemquicklyisvital.Fortunately,youcanusuallydosobymakingsureyour WordPressand SiteAddressesmatchinyoursite’ssettings. Intheeventthatthetwo-minutefixdoesn’tworkforyou,therearestillothersolutionsyoucantry: Changeyour WordPressandSiteURLswithoutaccesstoWP-Admin.Deleteyourbrowsercookies.Clearyourserver,proxy,andbrowsercaches.Checkforpluginconflicts.Replaceyour .htaccessfile.AskyourhosttocheckyourNginxConfigfile.RemoveSSLredirectsfromyouroriginserver(Cloudflare). Therearemanybetterusesofyourtimethantroubleshootingerrorsonyourwebsite.AtWPBuffs,oursupportteamisreadytohelpyougetyoursitebackupandrunningfast.CheckoutourWordPressCarePlanstoday! Wanttogiveyourfeedbackorjointheconversation?Addyourcomments🐦onTwitter. Ifyouenjoyedthisarticle,thenyou’llreallyenjoythe24/7WordPresswebsitemanagementandsupportservicesWPBuffs’hastooffer!PartnerwiththeteamthatofferseveryaspectofpremiumWordPresssupportservices.Fromspeedoptimizationservices,tounlimitedwebsiteedits,security,24/7support,orevenwhite-labelsitemanagementforagenciesandfreelancers,ourexpertengineershaveyourback.BringusinaspartofyourteamtomakeyoursiteBufftastic!Checkoutourplans originallyon November13,2019 Subscribe Watch Listen eBooks RelatedArticles HowtoSucceedinAffiliateMarketing:AnOverviewfromEmpireFlippers BestWordPressSocialMediaPlugins(FreeandPremium) ThenewCEOofWPBuffs Curiousaboutwhatwedo? Checkoutourplans MaintenancePlansfor:  ✅24/7WordPresssupport ✍️Unlimitedsiteedits 💨SpeedOptimization 🔐High-endSecurity 📲 Mobileresponsiveness 💪andmuchmore! Bookyourcall📅 Nothanks. TiredofGooglingforWordPresshelp?Let'stalk. Seewhitelabeloptions Whichcareplansbestfityourwebsites(orclientsites)? Takecareplanquestionnaire✔️ ✔️White-labelsitemanagement ✔️$1,000+ofpremiumpluginsfreeunderourcareplans✔️24/7websiteeditsandprioritysupport✔️Ongoingspeedandsecurityoptimization✔️24/7websiteuptimemonitoring✔️4xdailycloudbackups✔️Weeklyplugin,themeandcorefileupdates✔️Weeklyreportsdetailinganyon-sitechanges Nothanks.Icanmanage,speedup,secure,fixandgrowwebsitesmyself. Honedandprovenstrategieswe'veusedsuccessfully500+timestohelpyousellyourfirstcareplans.Actionstepsyoucanimplementinminutes. 📄Downloadyoursalesguide Nothanks,IcanalreadysellasmanycareplansasIwant. WPBuffs,LLCiscommittedtoprotectingandrespectingyourprivacy,andwe’llonlyuseyourpersonalinformationtoadministeryouraccountandtoprovidetheproductsandservicesyourequestedfromus.Fromtimetotime,wewouldliketocontactyouaboutourproductsandservices,aswellasothercontentthatmaybeofinteresttoyou.Ifyouconsenttouscontactingyouforthispurpose,pleaseenteryournameandemailaddressabove.   Youcanunsubscribefromthesecommunicationsatanytime.Formoreinformationonhowtounsubscribe,ourprivacypractices,andhowwearecommittedtoprotectingandrespectingyourprivacy,pleasereviewourPrivacyPolicy. Byclickingsubmitabove,youconsenttoallowWPBuffs,LLCtostoreandprocessthepersonalinformationsubmittedabovetoprovideyouthecontentrequested. Finally,anemaillistthathelpsmakeWordPresssimpleandeffectiveforyou. 🤓BecomeaWordPressBuff Speed&securityoptimizationtipsanddetailedhow-toguideswithadviceyoucanimplementtoday. Nothanks,IalreadyknoweverythingaboutWordPress. WPBuffs,LLCiscommittedtoprotectingandrespectingyourprivacy,andwe’llonlyuseyourpersonalinformationtoadministeryouraccountandtoprovidetheproductsandservicesyourequestedfromus.Fromtimetotime,wewouldliketocontactyouaboutourproductsandservices,aswellasothercontentthatmaybeofinteresttoyou.Ifyouconsenttouscontactingyouforthispurpose,pleaseenteryournameandemailaddressabove.   Youcanunsubscribefromthesecommunicationsatanytime.Formoreinformationonhowtounsubscribe,ourprivacypractices,andhowwearecommittedtoprotectingandrespectingyourprivacy,pleasereviewourPrivacyPolicy.Byclickingsubmitabove,youconsenttoallowWPBuffs,LLCtostoreandprocessthepersonalinformationsubmittedabovetoprovideyouthecontentrequested. Finally,getyourwebsite99.9999%secureandloadinginunder1second. 📚DownloadyoureBooks OurfreeeBooksandeasy-to-followchecklistswillhaveyourwebsitefullyoptimizedinjustafewhours. Nothanks,mywebsiteisasfastandsecureasIwantit. WPBuffs,LLCiscommittedtoprotectingandrespectingyourprivacy,andwe’llonlyuseyourpersonalinformationtoadministeryouraccountandtoprovidetheproductsandservicesyourequestedfromus.Fromtimetotime,wewouldliketocontactyouaboutourproductsandservices,aswellasothercontentthatmaybeofinteresttoyou.Ifyouconsenttouscontactingyouforthispurpose,pleaseenteryournameandemailaddressabove. Youcanunsubscribefromthesecommunicationsatanytime.Formoreinformationonhowtounsubscribe,ourprivacypractices,andhowwearecommittedtoprotectingandrespectingyourprivacy,pleasereviewourPrivacyPolicy.Byclickingsubmitabove,youconsenttoallowWPBuffs,LLCtostoreandprocessthepersonalinformationsubmittedabovetoprovideyouthecontentrequested. Finally,aWordPressnewsletteryou'llactuallyreadeverysinglemonth. ✉️Subscribe ✔️High-impactnews ✔️Actionabletutorialsandvideos ✔️#WordPressTwitterhighlights ✔️Voteonreceipientof$200donationandWPBuffsmerchgiveaways ✔️Fullycuratedsoyouonlyreceivethebest5%ofcontent Nothanks,IhaveotherwaystostayupdatedwithWP WPBuffs,LLCiscommittedtoprotectingandrespectingyourprivacy,andwe’llonlyuseyourpersonalinformationtoadministeryouraccountandtoprovidetheproductsandservicesyourequestedfromus.Fromtimetotime,wewouldliketocontactyouaboutourproductsandservices,aswellasothercontentthatmaybeofinteresttoyou.Ifyouconsenttouscontactingyouforthispurpose,pleaseenteryournameandemailaddressabove. Youcanunsubscribefromthesecommunicationsatanytime.Formoreinformationonhowtounsubscribe,ourprivacypractices,andhowwearecommittedtoprotectingandrespectingyourprivacy,pleasereviewourPrivacyPolicy.Byclickingsubmitabove,youconsenttoallowWPBuffs,LLCtostoreandprocessthepersonalinformationsubmittedabovetoprovideyouthecontentrequested. ReadabouthowweincreasedRigorousDigital'sprofitmarginby23%andhelpedremoveallwebsiteissuesforMEPPublishersandtheir3complexwebsites. 📄Downloadyourcasestudies Nothanks,Idon'tneedmoreprofitandIcantackleallmyWordPressissuesmyself. WPBuffs,LLCiscommittedtoprotectingandrespectingyourprivacy,andwe’llonlyuseyourpersonalinformationtoadministeryouraccountandtoprovidetheproductsandservicesyourequestedfromus.Fromtimetotime,wewouldliketocontactyouaboutourproductsandservices,aswellasothercontentthatmaybeofinteresttoyou.Ifyouconsenttouscontactingyouforthispurpose,pleaseenteryournameandemailaddressabove.   Youcanunsubscribefromthesecommunicationsatanytime.Formoreinformationonhowtounsubscribe,ourprivacypractices,andhowwearecommittedtoprotectingandrespectingyourprivacy,pleasereviewourPrivacyPolicy. Byclickingsubmitabove,youconsenttoallowWPBuffs,LLCtostoreandprocessthepersonalinformationsubmittedabovetoprovideyouthecontentrequested. RegisterforournextliveWPAMAevent! 🎟️RegisterforWPAMA 🏆Chancetowinweeklygiveaways 📆InstantinvitestoourWeeklyWPAMA 🙋 Firstaccesstosubmitquestions 💻Directlinkstoallofourevents WPBuffs,LLCiscommittedtoprotectingandrespectingyourprivacy,andwe’llonlyuseyourpersonalinformationtoadministeryouraccountandtoprovidetheproductsandservicesyourequestedfromus.Fromtimetotime,wewouldliketocontactyouaboutourproductsandservices,aswellasothercontentthatmaybeofinteresttoyou.Ifyouconsenttouscontactingyouforthispurpose,pleaseenteryournameandemailaddressabove. Youcanunsubscribefromthesecommunicationsatanytime.Formoreinformationonhowtounsubscribe,ourprivacypractices,andhowwearecommittedtoprotectingandrespectingyourprivacy,pleasereviewourPrivacyPolicy.Byclickingsubmitabove,youconsenttoallowWPBuffs,LLCtostoreandprocessthepersonalinformationsubmittedabovetoprovideyouthecontentrequested. 🍪Weusecookiestoensurethatwegiveyouthebestexperienceonourwebsite.Ifyoucontinuetousethissitewewillassumethatyou'recoolwithit.OK,soundsgood!Nothankyou



請為這篇文章評分?