web.configルールがあります。1つのweb.configファイルで複数のドメイン同盟をサポートします。wwwを追加します。プレフィックスとリダイレクトが自動的に行われます。
<rule name="Redirect to WWW" stopProcessing="true">
<match url=".*" />
<conditions logicalGrouping="MatchAll">
<add input="{HTTP_HOST}" pattern="^(www\.)(.*)$" negate="true" />
</conditions>
<action type="Redirect" url="http://www.{HTTP_HOST}/{R:0}" redirectType="Permanent" />
</rule>
しかし、ドメインが「admin」サブドメインで始まるときにリダイレクトしたくありません。
どうすればこの正規表現を変換できますか:^(www。)(。*)$