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 回答