htacces 有两个域。将domain1/文件夹指向domain1/anotherfolder/
我有一家有两个域的酒店。现在客户想要重定向:
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
找到了一个不使用 .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