Error 310 (net::ERR_TOO_MANY_REDIRECTS) - Stack ...

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

Error 310 (net::ERR_TOO_MANY_REDIRECTS): · php redirect. I am not getting this error on my local host, only when i upload to my server does ... Home Public Questions Tags Users Collectives ExploreCollectives FindaJob Jobs Companies Teams StackOverflowforTeams –Collaborateandshareknowledgewithaprivategroup. CreateafreeTeam WhatisTeams? Teams CreatefreeTeam CollectivesonStackOverflow Findcentralized,trustedcontentandcollaboratearoundthetechnologiesyouusemost. Learnmore Teams Q&Aforwork Connectandshareknowledgewithinasinglelocationthatisstructuredandeasytosearch. Learnmore Error310(net::ERR_TOO_MANY_REDIRECTS): AskQuestion Asked 9years,6monthsago Active 6monthsago Viewed 61ktimes 10 2 Iamnotgettingthiserroronmylocalhost,onlywheniuploadtomyserverdoesthiserrorappear,ononeofmypages.anyideawhatineedtochange? phpredirect Share Follow askedMay11'12at3:02 arbolesarboles 1,29744goldbadges1919silverbadges3939bronzebadges 3 Somemoreinformationplease?Anything...? – deceze ♦ May11'12at3:04 2 whatelsecaniprovide?ihavenoideawhatiscausingthistohappen. – arboles May11'12at3:09 Firstofall,whereexactlythaterroriscomingfrom.Secondly,whathaveyoutried?Anyadditionalindicatorsaboutwhatcouldbehappening.Then,whatdoesyourapplicationconsistof?Doyoudoanythingwithredirectsatallordoesitseemlikeawebserverproblem.Justanyinformationyoucanprovidethatmayseemrelevant. – deceze ♦ May11'12at3:12 Addacomment  |  2Answers 2 Active Oldest Votes 19 IhaverunintothiserrorinawebbrowserinwhichawebpageIwenttoredirectstoanotherwebpagethatredirectsbacktotheoriginalendlessly,Ihavealsorunintosituationswhereaprogrammingerrorcontinuouslyreloadsorredirectsthepagetoitself. Thewaytotroubleshootthistypeofproblemistoactuallywatchtherequestsyourbrowserismakingtotheserver.Youshouldbeabletoseemultipleindividualrequestsbeforethiserrorcomesup. YoucanseetherequestsyourbrowsermakesusingthenetworktabofthedevelopertoolsinChrome(Ctrl+Shift+J)orthenetworktagofFirebuginfirefox.IthinkIE9hasanetworktoolintheirdevelopertools(F12)butIcantremember,andIcantthinkofagoodenoughreasontoopenIE9tocheck.Butifitdoesn'thaveanetworktoolyoucaninstallthefreeversionofHTTPWatch,whichallowsyoutowatchtheindividualrequestsmadebyyourbrowser. And,ifnoneofthesework,youcanalwaysinstallFiddlerorWireSharewhichsniffthepacketsandrequestsmadebyyourbrowser. Share Follow answeredMay11'12at3:21 MichaelBloodMichaelBlood 1,23799silverbadges1010bronzebadges 1 UsingthisadviceIlocatedmyspecificrelatedissue.Notingforfuturedeveloperswithmyissue.IammovinganoldappIhavenottouchedinayearandahalffromHerokutomyownserver(Ubuntu18).InordertorunSSLonHeroku,IhadtousesslRedirect()fromtheheroku-ssl-redirectnpmlibrary.Whenmovingtoastandardserver,evenonnon-SSLports,theexpressserverwasstillredirectinginaloop.OntheSSLport,italsogotstuckinaredirectloop.Bytakingoutthisline,theexpressservernowservestheappwithnoissuesredirecting.IwishIhadmoredetail,buthth. – DanielBrown Apr29'20at15:11 Addacomment  |  0 localhostandweb-serversaredifferentpathforyourfilessoyouneedtoedit.htaccessfileforgetactualbase-pathandaddthislineofcodeintit RewriteEngineOn #Somehostsmayrequireyoutousethe`RewriteBase`directive. #Ifyouneedtousethe`RewriteBase`directive,itshouldbethe #absolutephysicalpathtothedirectorythatcontainsthishtaccessfile. RewriteBase(yourphysicalpath) ....... itsallabout.htaccesserror Share Follow answeredMar18'17at10:10 AkshayKumbharAkshayKumbhar 22922silverbadges66bronzebadges Addacomment  |  YourAnswer ThanksforcontributingananswertoStackOverflow!Pleasebesuretoanswerthequestion.Providedetailsandshareyourresearch!Butavoid…Askingforhelp,clarification,orrespondingtootheranswers.Makingstatementsbasedonopinion;backthemupwithreferencesorpersonalexperience.Tolearnmore,seeourtipsonwritinggreatanswers. Draftsaved Draftdiscarded Signuporlogin SignupusingGoogle SignupusingFacebook SignupusingEmailandPassword Submit Postasaguest Name Email Required,butnevershown PostYourAnswer Discard Byclicking“PostYourAnswer”,youagreetoourtermsofservice,privacypolicyandcookiepolicy Nottheansweryou'relookingfor?Browseotherquestionstaggedphpredirectoraskyourownquestion. TheOverflowBlog DoesES6makeJavaScriptframeworksobsolete? Podcast392:Dopolyglotshaveanedgewhenitcomestomasteringprogramming... FeaturedonMeta Nowlive:Afullyresponsiveprofile PleasewelcomeValuedAssociates#999-BellaBlueϩ-SalmonofWisdom Linked 0 ForecfullyredirectHTTPtoHTTPS 1 toomanyredirectsinexpress Related 964 HowcanIdo'insertifnotexists'inMySQL? 554 Changethemaximumuploadfilesize 4818 Reference—WhatdoesthissymbolmeaninPHP? 1298 "Notice:Undefinedvariable","Notice:Undefinedindex",and"Notice:Undefinedoffset"usingPHP 1311 HowdoyouusebcryptforhashingpasswordsinPHP? 976 GetthefullURLinPHP 831 Howtofix"Headersalreadysent"errorinPHP 2165 HowdoesPHP'foreach'actuallywork? 1119 WhatareLong-Polling,Websockets,Server-SentEvents(SSE)andComet? 1218 Reference-WhatdoesthiserrormeaninPHP? HotNetworkQuestions Themeaningoftheverb“levar” HowdoesGazeofTwoMindsinteractwithBlindsightandothernon-vision/hearingsenses? EMTtooutdoorceilingfan Using"thebank"or"thecinema"totalkabouttheactivity Whatdoes"goes"refertoinLuke22:22? WhatcancausenetworkpacketsconsistingofPUU? What'sthehistoryofbushijacking&burningduringtheTroubles? Groveralgorithmforpublickeycryptography-FrodoKEM Meanofbooleanlist Whatisthedifferencebetweengitadd*andgitadd.? Sextupletsin6/8time Alienesecycles Evaluationofpointsinacontest Transimpedanceamplifierforverylowcurrents Canabeefandporkmixburgerbeservedmedium Screwholetoobignowinstudforhangingcabinetsup.WhatcanIdo? HowtoovercomethesetbacksofanegligentsupervisorafterearningaPhDdegree? Whoconsideredmultimediacapabilityaliabilityforabusinesscomputers,andwhy? CreatingequallysplitbuffersbetweenpointsinQGIS Waystohearkidonbackseat Arethereanygapsintherangeofgravitationalwavefrequencieswecandetect? HowcanyoupastetextwithindentsintoTeamsonOSX? Pottytraining7yearold Referenceforcombinatoricswithviewtowardsrepresentationtheory/algebraicgeometry morehotquestions Questionfeed SubscribetoRSS Questionfeed TosubscribetothisRSSfeed,copyandpastethisURLintoyourRSSreader. lang-php Yourprivacy Byclicking“Acceptallcookies”,youagreeStackExchangecanstorecookiesonyourdeviceanddiscloseinformationinaccordancewithourCookiePolicy. Acceptallcookies Customizesettings  



請為這篇文章評分?