HTTP redirection issue in IIS, keep getting ...

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

HTTP redirection issue in IIS, keep getting ERR_TOO_MANY_REDIRECTS on the browser · c# iis https url-redirection. I am trying to enable HTTPS on a website on ... 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 HTTPredirectionissueinIIS,keepgettingERR_TOO_MANY_REDIRECTSonthebrowser AskQuestion Asked 6years,6monthsago Active 4monthsago Viewed 25ktimes 3 0 IamtryingtoenableHTTPSonawebsiteonIIS.Iwanttoredirecttheuserfromhttptohttps. Ihaveupdatedtheruleaccordinglyinweb.configto Iamabletoconverttherequesttohttpsbutthenitkeepsredirectingtothesameurlwithhttps.Theproblemisthattheruleapparentlykeepsredirectingallurlsincludingtohttpsandthenthebrowserinthenetworktabkeepslotsof301andeventuallythrows Thiswebpagehasaredirectloop ERR_TOO_MANY_REDIRECTS Pleasehelpmeouthereifsomeonehastackledasimilarsituation.Icanprovidemoreinformationifnecessary. Thankyou c#iishttpsurl-redirection Share Improvethisquestion Follow askedApr23'15at3:18 TirathShahTirathShah 48822goldbadges66silverbadges88bronzebadges 4 WhichistheIISversionyouareusing? – bhuvin Apr23'15at4:33 Areyoutryingtoredirectallpagerequeststohttps?Isyourwebsitehostedonaloadbalancedenvironment? – TejSoft Apr23'15at5:18 @bhuvinIamusingIIS7.5 – TirathShah Apr23'15at5:51 @TejSoftYes,Iamtryingtoredirectallpagestohttps,primarilythehomepage.Iamnotawareaboutloadbalancedenvironment. – TirathShah Apr23'15at5:52 Addacomment  |  1Answer 1 Active Oldest Votes 1 Trythefollowingrewriterule.ThiswillworkforwebsitesservedbysingleIISserver.Loadbalancedenvironmentsorserverfirmsneedsometweaks. Youcanalsohavealookatthequestionandsolutionhere Share Improvethisanswer Follow editedMay23'17at12:34 CommunityBot 111silverbadge answeredApr23'15at5:26 TejSoftTejSoft 2,99355goldbadges3030silverbadges5252bronzebadges 6 1 thisisstilldoingthesamerecursiveredirectionforme..Idon'tthinkIhavealoadbalancedenvironment – TirathShah Apr23'15at5:58 Areyoureferencingcss,javascriptorotherfilesunderwithdirecthttp://protocol?Itcancreateredirectloop.Youhavetoproviderelativepathtoimages,cssandjavascriptfiles. – TejSoft Apr23'15at6:05 thisismainurlfromtheurlbar – TirathShah Apr25'15at5:12 1 Yes,besidethemainurlifthewebpagereferstocss,jsorimagefilesas"website.com.au/images/image.png"etc,itwillgetintoaredirectloop.Redirectruleswillbeapplicabletoallrequests. – TejSoft Apr26'15at13:23 1 @AdrianRosca,YouhavetoconfiguretheloadbalancertopassavariablecalledHTTP_X_FORWARDED_PROTOwhichwillspecifyiftheoriginalrequestwashttporhttps.So,theconditionwillchangefromto – TejSoft May15'17at1:28  |  Show1morecomment 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?Browseotherquestionstaggedc#iishttpsurl-redirectionoraskyourownquestion. TheOverflowBlog DoesES6makeJavaScriptframeworksobsolete? Podcast392:Dopolyglotshaveanedgewhenitcomestomasteringprogramming... FeaturedonMeta Nowlive:Afullyresponsiveprofile PleasewelcomeValuedAssociates#999-BellaBlueϩ-SalmonofWisdom Linked 2 ASPXsitedownpage 0 HowtoforcecertainsectionsofthewebsitetobebrowsedunderSSL? Related 240 HowtoforceHTTPSusingaweb.configfile 145 HowdoIconfigureIISforURLRewritinganAngularJSapplicationinHTML5mode? 856 Error-UnabletoaccesstheIISmetabase 6 IISRewriteRuleinweb.configtoredirectHTTPSrequeststoHTTP 3 IISURLRewriteissuewithTilde(~) 0 redirecthttptohttpsInfinityloop301IIS(loadbalancingenvironment) 0 httpsredirectionIIS 0 IISURLRewriteHttptoHttps,excludesingleURL 0 Sitecore-301redirectionforsimilarURLs HotNetworkQuestions PausesinLatinPoetry HowcanImakeashellaliasworkimmediately? Howtociteworksthatiscitedintheworks Whydon'tvirusescausewounds? Isitmoreefficienttouseamapandcall.get(),oruseasetandcall.contains()? Using"thebank"or"thecinema"totalkabouttheactivity DoItellaprospectiveemployerthatI'mgoingtocontinuelookingforjobsinmyfieldiftheyhireme? HowdothepegsonSitarneckwork? BlockSettingsinsideForm HowiscantripdamagedeterminedwhencastbyNPCs? Sextupletsin6/8time Whyiscarbonicacidoftenignored? WhyisthereablackdonutinPerseverance'sSkyCam?IsitalwaysusedtoblocktheSun?(skycamerasonEarthdon't)Howdoesitwork? Is3/16"plywoodsubfloorsufficientforashowerfloor? HowcanyoupastetextwithindentsintoTeamsonOSX? Howdoyoustudyatextbookthatdoesn'thaveanyexercises? Referenceforcombinatoricswithviewtowardsrepresentationtheory/algebraicgeometry HowmuchhasfuelefficiencyincreasedinrocketssincetheApollomissions? Countrynamesfromothercountrynames Whiletransitioningtoanew(online)bankisitOKtohavemymoneysplitbetweentwobanks? Waystohearkidonbackseat WhyareWhiteAmericansintheSouthernregionoftheUSAmuchmoreconservativeandRepublicanthanelsewhere? Canabeefandporkmixburgerbeservedmedium Beameroverlaywith`nicematrix` morehotquestions Questionfeed SubscribetoRSS Questionfeed TosubscribetothisRSSfeed,copyandpastethisURLintoyourRSSreader. lang-cs Yourprivacy Byclicking“Acceptallcookies”,youagreeStackExchangecanstorecookiesonyourdeviceanddiscloseinformationinaccordancewithourCookiePolicy. Acceptallcookies Customizesettings  



請為這篇文章評分?