【发布时间】:2011-12-09 00:51:54
【问题描述】:
我在这里很新,所以我有一个关于屏蔽的问题,并尝试了使用 .htaccess 的其他解决方案,但没有运气,这就是我在这里的原因。谢谢。
好的,就是这样:
- 我希望我的http://www.domain.com/article-tip 显示在http://www.subdomain.domain.com
- 表示页面内容来自:domain.com/article-tip
- 但是地址上面的url是:subdomain.domain.com
- 我将如何使用 .htaccess 来做到这一点?
这意味着我也尝试了 iframe 和框架以及 php,但我想要 .htaccess
提前致谢!
【问题讨论】:
-
您需要利用 Apache 的 ReverseProxy 功能(除了 URL 重写之外)。
标签: .htaccess url dns subdomain masking