0

sitefinity の公式サイトには、古すぎる sitefinity 3.x のガイドしかありません。

誰にもアイデアはありますか?

4

1 に答える 1

1

他の誰かがこれを理解したかどうかはわかりませんが、私の解決策は次のとおりです。

Sitefinity 5.3 IIS8 IIS 書き換えモジュール

web.config 内で、system.webServer ノードの最後に以下を追加します。

<rewrite>
  <rules>
    <!-- Redirect your page group to the base -->
    <rule name="Page Group Redirect" enabled="true">
      <match url="^sitefinitypagegroupname/(.*)" ignoreCase="true" />
      <action type="Redirect" url="/{R:1}" />
    </rule>
    <!-- Rewrite your sub domain to the page group -->
    <rule name="Page Group Rewrite" enabled="true">
      <match url="(.*)" ignoreCase="true" />
      <conditions logicalGrouping="MatchAll">
        <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
        <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
        <add input="{URL}" negate="true" pattern="\.axd$" />
        <add input="{URL}" negate="true" pattern="^/sitefinity(.*)" />
        <add input="{HTTP_HOST}" pattern="^(www\.)?subdomain\.domain\.com$" ignoreCase="true" />
      </conditions>
      <action type="Rewrite" url="sitefinitypagegroupname/{R:1}" />
    </rule>
  </rules>
</rewrite>
于 2013-02-12T19:52:44.927 に答える