2
나는 내 주요 사이트 및 하위 도메인에 대한 디렉토리 구조를 설정하려면 다음 패턴을 사용하고있다 :추가 HTTPS 폴더에 하위 도메인을 재 작성 규칙을 기존 리디렉션
A. 각 사이트는 자신의 하위 폴더에 포함 메인 사이트에서 내가 뭔가를 가질 수 있도록
\wwwroot
\main
\subdomain1
B. wwwroot에는 단 하나의 파일 만 있습니다. 다음
<configuration>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true" />
<rewrite>
<rules>
<rule name="Rewrite to folder1" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{HTTP_HOST}" pattern="^www.MyMainDomain.com$" />
</conditions>
<action type="Rewrite" url="main/{R:1}" />
</rule>
<rule name="subdomain1.MyMainDomain.com to sub folder" enabled="true" stopProcessing="true">
<match url="(.*)" ignoreCase="true" />
<conditions logicalGrouping="MatchAll">
<add input="{HTTP_HOST}" pattern="^subdomain1\.MyMainDomain\.com$" ignoreCase="false" />
<add input="{PATH_INFO}" pattern="^/subdomain1($|/)" negate="true" />
</conditions>
<action type="Rewrite" url="\subdomain1\{R:0}" />
</rule>
</rules>
</rewrite>
</system.webServer>
어떻게 HTTPS는 하위 도메인 리디렉션 추가합니까있는 web.config 파일?
재 작성/리디렉션되는 것을 디버깅하는 가장 좋은 방법은 무엇입니까?
이 작업을 수행 했습니까? 나는 같은 문제를 가지고 있고 그것을 어떻게 다룰 지 확신하지 못한다. 유일한 차이점은 "기본"이 있지만 example.com/subdomain1을 https://subdomain1.example.com/subdomain1로 리디렉션하면됩니다. – NoBullMan