HTTPS IIS redirect without creating another site - Microsoft Q&A

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

For ERR_TOO_MANY_REDIRECTS error, you can refer to the following solutions: Delete cookies on that specific site. clear server and browser cache ... Home Anonymous Signintopost Post Explore Tags Questions Sitefeedback Articles Users Skiptomaincontent Findthreads,tags,andusers... SearchSearch Explore Tags Questions Sitefeedback Articles Users Signintopost Home question Clicktovote 0Votes"0 Clicktodownvote VitorDiasMariano-5288 asked • Jan12,'21 | SamWu-MSFT answered • Jan14,'21 HTTPSIISredirectwithoutcreatinganothersite Goodmorninggentlemen, I'mtryingtoredirectHTTPSfromthewebsitesofthecompanyIworkfor,butviaURLRewriteandtheHTTPSsettingsofIISitselfarenotworking,soIamobligedtocreateanotherwebsitejusttodotheredirection,butonourserverspecific,itworksandapparentlytheirfirewallsettingsandiisarethesame. Thereisawebsite...example"vitor.com.br"andwhenItrytocreateanHTTPStargetingruleonthissamewebsiteitdoesn'twork. IfIcreateanothersiteandconfigureitsbindingjusttomakethisredirectionon"vitor.com.br"work,howeverIwouldliketoperformtheredirectionwithouthavingtocreatethissecondwebsite. SoIkeeptheoriginalsiteandonetoredirect Site1->Vitor Site2->Vitor_Redirect(createdonlytoredirectsite1toHTTPS) Thanks:) dotnet-aspnet-core-general Comment Comment· Show 2 Comment 5|1600charactersneededcharactersleftcharactersexceeded ▼ Visibletoallusers Viewablebymoderators Viewablebymoderatorsandtheoriginalposter Advancedvisibility ToggleCommentvisibility.CurrentVisibility:Visibletoallusers Attachments:Upto10attachments(includingimages)canbeusedwithamaximumof3.0MiBeachand30.0MiBtotal. SamWu-MSFT ·Jan13at06:29AM @VitorDiasMariano-5288Accordingtoyourdescription,Icouldn’tunderstandyourrequirementclearly.Ifyouwanttoredirecthttptohttps,thenyouonlyneedtousethefollowingrules,whydoyouneedtocreateothersites?andIfoundthatyoumentionedcreateanHTTPStargetingruleabove,didyougetanyerrors? 0Votes0 · VitorDiasMariano-5288 SamWu-MSFT ·Jan13at09:51PM @SamWu-MSFTimacctualygettingerrors.Whenitrytoredirectthewayyoumentionabove,itcreatesaloopwhiletryingtoaccesthewebsite,anditonlyworkswhenicreatesasecondonejusttodotheredirect. Itseemslikeitsaparticularityfromthisserver,causethereisanotheronethatitain'thappens. MaybeitsaconfigurationoftheserverandnottheIIS.Ihopesomeonecanhelpme. Thanksguys. Followsanexampleofhowthesitesforredirects. Andthisoneshowsthelooperrorwhenitrytheaccesbythecommonconfiguration. 0Votes0 · capture.png (26.3KiB) capturar.png (14.6KiB) 1Answer Clicktovote 0Votes"0 Clicktodownvote SamWu-MSFT answered • Jan14,'21 Hi@VitorDiasMariano-5288, ForERR_TOO_MANY_REDIRECTSerror,youcanrefertothefollowingsolutions: Deletecookiesonthatspecificsite. clearserverandbrowsercache. Ifclearingthecachedidn’twork,thenyou’llwanttoseeifyoucandeterminethenatureoftheredirectloop.ThisfreeonlineRedirectCheckertoolcanhelpprovidesomefurtheranalysisintowhatmightbegoingon. Bestregards,Sam Iftheanswerishelpful,pleaseclick"AcceptAnswer"andupvoteit. Note:Pleasefollowthestepsinour documentation toenablee-mailnotificationsifyouwanttoreceivetherelatedemailnotificationforthisthread. Comment Comment Show 0 Comment 5|1600charactersneededcharactersleftcharactersexceeded ▼ Visibletoallusers Viewablebymoderators Viewablebymoderatorsandtheoriginalposter Advancedvisibility ToggleCommentvisibility.CurrentVisibility:Visibletoallusers Attachments:Upto10attachments(includingimages)canbeusedwithamaximumof3.0MiBeachand30.0MiBtotal. questiondetails 2peoplearefollowingthisquestion. AnswersSubscribetoAnswers AnswersandCommentsSubscribetoCommentsandAnswers RelatedQuestions IISanonymoussitepromptingforcredentials IIScompressionintermittent WillreinstallingURLRewritemodulecausesomethingtobreak WhatadvantagesdoesIISExpressofferoverKestrelaloneforASP.NETCoredevelopment-time? WindowsAuthenticationnotworkinginIISafteraddingBindings. About · FAQ · Privacy · Copyright©2010-21DZone,Inc.



請為這篇文章評分?