如何设置跨多个域和文化的文档共享 URL
我有一个 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您根本不能在同一站点中拥有两个具有相同 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.