在 umbraco 中分配主机名

发布于 2024-07-09 09:17:37 字数 919 浏览 6 评论 0原文

我正在使用 umbraco cms 设置 af 多语言页面。

我的内容结构如下所示:

  • 内容
      • 丹麦语子页面 1
      • 丹麦语子页面 2
    • zh
      • 英文子页面 1
      • 英文子页面 2

我希望路由类似于:

http://mysite.dk 应转到 http://mysite.dk/da/danish 子页面 1

http://mysite.dk/da/ 应该转到 http://mysite.dk/da/danish 子页面 1(以及)

http://mysite.dk/en/ 应转到 http://mysite。 dk/en/english subpage 1

我知道我需要在 umbraco 中设置主机名,但我不知道该怎么做。 我无法访问 IIS,因为它位于托管环境中。

I'm setting up af multi lingual page with the umbraco cms.

I have a content structure that looks like this:

  • Content
    • da
      • danish subpage 1
      • danish subpage 2
    • en
      • english subpage 1
      • english subpage 2

I would like the routing to be something like:

http://mysite.dk should go to http://mysite.dk/da/danish subpage 1

http://mysite.dk/da/ should go to http://mysite.dk/da/danish subpage 1 (as well)

http://mysite.dk/en/ should go to http://mysite.dk/en/english subpage 1

I know I need to set up the hostnames in umbraco, but I can't figure out how to do that. I don't have access to IIS as it's in a hosted environment.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

黑寡妇 2024-07-16 09:17:38

您只需右键单击一个节点并选择出现的“主机名”选项,然后按照出现的说明进行操作

,但我认为您还需要将主机名添加到 IIS。

you just right click on a node and select the 'hostnames' option which appears, then follow the instructions that appear

But I think you will also need to add the hostname to IIS.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文