재 작성 모듈 - 다음과 하지 과정을 수행 장치가 모바일 장치인지 여부를 감지하고 m.mysite.com으로 리디렉션하는 다음 입력 조건 들어오는 링크가 의 Web.config 나는 그것이 .com 부분을 넘어 URL에 <strong>아무것도</strong>있는 모든 링크를 감지 그래서 내 Web.config의에 규칙을 추가하는 방법을 알아 내려고 노력하고 있어요
- : 예를 들어
여기에 몇 가지 예를 들어 케이스는 내가 모바일 리디렉션을 건너 할 것입니다 www.mysite.com? c = 1
www.mysite.com 또는 mysite.com의 기본 도메인 인 모든 경우에 모바일 사이트로 리디렉션하고 싶습니다.
다음은 현재 사용중인 web.config 다시 작성 섹션입니다.
<rewrite>
<rules>
<rule name="MobileRedirect" patternSyntax="ECMAScript" stopProcessing="true">
<match url=".*" ignoreCase="true"/>
<conditions logicalGrouping="MatchAll">
<add input="{HTTP_COOKIE}" pattern="persistdesktop=1" ignoreCase="true" negate="true"/>
<add input="{HTTP_USER_AGENT}" pattern="android|blackberry|googlebot-mobile|iemobile|iphone|ipod|opera mobile|palmos|webos"/>
</conditions>
<action type="Redirect" url="http://m.mysite.com" appendQueryString="false" redirectType="Found"/>
</rule>
</rules>
그래서 내 추측은 내가 다른 두 사람보다 다른 조건을 추가 할 필요가 있다는 것입니다. 그런 다음 조건 logicalGrouping 매개 변수를 MatchAny로 변경합니까? 또는이 기존 규칙 위에 다른 규칙을 작성합니까? 감사합니다.
나는이 게시물에 어떤 도움을받을 수 있습니까? http://stackoverflow.com/questions/33990284/subdomain-rewrite-rule-in-web-config – Josh