htacces 有两个域。将domain1/文件夹指向domain1/anotherfolder/

发布于 2024-08-25 14:45:24 字数 347 浏览 2 评论 0原文

我有一家有两个域的酒店。现在客户想要重定向:

domain1.dk/folder/ [nothing should happen]
domain2.dk/folder/ -> domain1.dk/anotherfolder/

上面的两个 URL(domain1.dk/folder/、domain2.dk/folder/)在今天的导航结构中不存在。

我不确定当存在多个域并且子文件夹应该进行不同的处理时 htaccess 是否是一种可行的方法。

BR。安德斯

P.S. 网站是用 TYPO3 构建的,它是一个 apache 服务器和 php 作为编程语言

I have a hotel with two domains. Now the customer want a redirect:

domain1.dk/folder/ [nothing should happen]
domain2.dk/folder/ -> domain1.dk/anotherfolder/

The two URL's above (domain1.dk/folder/, domain2.dk/folder/) does not exist in the navigation structure today.

I am not sure if htaccess is the way to go when there are more thant one domain and the subfolders should be trated differently.

BR. Anders

P.S.
site is build in TYPO3, it is an apache server and php as programming language

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

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

发布评论

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

评论(1

最偏执的依靠 2024-09-01 14:45:24

找到了一个不使用 .htaccess 的解决方案 - 这是一个 TYPO3 特定的解决方法,部分由名为 real_url 的 TYPO3 扩展完成

Found a soulution that is not using .htaccess - it is a bit of a TYPO3 specific workaround partly done by the extension for TYPO3 called real_url

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