【问题标题】:Redirect DNN Portal Alias to a Specific Page of the Portal将 DNN 门户别名重定向到门户的特定页面
【发布时间】:2014-12-02 20:01:16
【问题描述】:

我需要将请求重定向到 DNN 07.03.02 安装的特定门户别名的根目录到同一门户的页面。重定向只能影响一个门户别名,同一门户上的另一个门户别名不得重定向。此外,托管此门户的 DNN 安装还有许多其他门户,因此我无法通过站点根目录中的元重定向文件强制重定向。我配置了一个 IIS (8.5) 重写规则,如下所示,它在技术上执行我想要的重定向,但这会破坏位于门户根目录中的所有图像和样式表的相对路径。我也尝试过 DNN SiteURL 重定向规则,但这些规则根本无法强制进行任何重定向。如果有任何关于如何为 DNN 门户配置此类重定向的建议,我将不胜感激。

        <rewrite>
        <rules>
            <rule name="my redirect" stopProcessing="true" enabled="false">
                <match url=".*" ignoreCase="true" />
        <conditions logicalGrouping="MatchAll" trackAllCaptures="false">
                    <add input="{HTTP_HOST}" pattern="^(www.)?mysite.com$" />
                </conditions>
    <action type="Rewrite" url="/newpage" appendQueryString="true" />
            </rule>
        </rules>
    </rewrite>

【问题讨论】:

    标签: redirect iis url-rewriting dotnetnuke


    【解决方案1】:

    我通过向我的 IIS 重写规则添加排除项来纠正此问题,例如:

    <add input="{PATH_INFO}" pattern="^/portals/0/" negate="true" />
    

    这样我的门户内容的路径就不会被重写。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-12-17
      • 2021-01-13
      • 1970-01-01
      • 2017-12-26
      相关资源
      最近更新 更多