如何设置跨多个域和文化的文档共享 URL

发布于 2024-10-01 10:22:30 字数 345 浏览 2 评论 0原文

我有一个 kentico 网站,它有两个特定于文化的域(.co.nz 和 .com.au),我想设置多种文化,以便该网站在网站树中具有某些文档的不同版本。

我已经完成了所有这些工作,但是我的问题是我希望两个域上的 URL 相同,而 kentico 不允许两个文档具有相同的路径(它放置了 -1 如果您输入相同的路径名,则在路径名的末尾)

我希望:

[domain name].com.au/products
[domain name].co.nz/products

指向相同的文档(以其各自的文化版本)

其他人如何实现这一点?

i have a kentico site that has two culture specific domains (.co.nz and .com.au) and i want to setup multiple cultures so that the site has different versions of the some document in a sites tree.

I have all this working, however my problem is that i want the URL's to be the same on both domains and kentico doesn't allow you to have the same path for the two documents (it places a -1 on the end of your path name if you enter them the same)

i am looking to have:

[domain name].com.au/products
[domain name].co.nz/products

point to the same document (in its respective culture version)

how have others achieved this?

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

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

发布评论

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

评论(1

扛刀软妹 2024-10-08 10:22:30

您根本不能在同一站点中拥有两个具有相同 URL 的不同文档,否则 Kentico 如何知道要路由到哪个页面。

要么有新西兰版本的单独网址,例如
audomain/产品
nzdomain/products-nz

或者考虑将它们分成同一 Kentico 实例中的两个不同站点。然后,您可以通过创建链接文档来跨站点共享内容。如果需要,这还允许您在每个站点上拥有单独的内容。

You simply can't have two different documents with the same URL in the same site, otherwise how would Kentico know which page to route to.

Either have a seperate url for the NZ version like
audomain/products
nzdomain/products-nz

Or consider separating them into two different sites in the same Kentico instance. Then you can share content across the sites by creating linked documents. This also allow you to have separate content on each site if required.

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