【发布时间】:2012-11-10 14:55:06
【问题描述】:
我明白了:
-- root # example.com
profile # example.com/profile
----- subdomain1 # subdomain1.example.com
----- subdomain2 # subdomain2.example.com
----- subdomain3 # subdomain3.example.com
问题是当来自 subdomain1.example.com/profile 或 subdomain1.example.com/about 的请求时,它们总是重定向到 example.com/profile
我希望来自子域的所有请求,例如:subdomain1.example.com/profile 或 subdomain1.example.com/profile 将重定向到当前请求,而不是重定向到根域,例如:example.com/profile
如何使用 .htaccess 制作它?
【问题讨论】:
-
在任何人回答这个问题之前,您必须提供有关您的设置的更多详细信息。 当前设置是什么?它是如何工作的?这些“子域”是如何配置的?
-
我没有任何 .htaccess 配置
-
除了一些 .htaccess 文件之外,服务器配置还有其他一些东西。正如我之前问过的:这些“子域”是如何配置的?
-
一会儿 arkascha 我会先找出来的。
标签: .htaccess redirect subdomain