如何默认将 Kentico 重定向到 CMS 管理页面

How to redirect Kentico to CMS admin page by default

我们使用 Kentico 11 和一个 MVC 网站,两者都作为 Azure 应用服务托管。

我们公司的 URL 看起来像 www.mycorp.com 和 Kentico CMS URL 看起来像 kentico.mycorp.com

当有人访问 kentico.mycorp.com 时,它会显示一个空白页面。我们需要输入 kentico.mycorp.com/admin 才能进入 CMS。

有没有一种方法可以在不在 IIS 中添加任何新的 DNS 条目或 Web 应用程序的情况下设置重定向?

你能检查一下你的站点配置吗:

同时检查是否没有安装其他站点。

在您的 CMS 中尝试以下操作 web.config:

<configuration>
..
  <system.webServer>
    <rewrite>
      <rules>
        <rule name="AdminRedirect" stopProcessing="true">
          <match url="^$" />
          <action type="Redirect" url="/admin" />
        </rule>
      </rules>
    </rewrite>
  </system.webServer>
..
</configuration>