使用DNS重定向到具有路径的另一个URL
问题描述:
我正在尝试通过DNS将域重定向到另一个域。
I'm trying to redirect a domain to another via DNS.
我知道使用IN CNAME可以使用。
I know that using IN CNAME it's posible.
www.proof.com IN CNAME www.proof-two.com.
我需要的是重定向路径。当有人输入 www.proof.com
时,应该将它们转到 www.proof-two.com/path/index.htm
What i need is a redirection with a path. When someone types www.proof.com
, it should take them to to www.proof-two.com/path/index.htm
我知道可以使用Web服务器设施完成,但需要DNS重定向。
I know it can be done using Web Server facilities, but I need DNS redirection.
这是可能吗?
答
不,你问什么是不可能的。 DNS是名称解析系统,不了解HTTP。
No, what you ask is not possible. DNS is name resolution system and knows nothing about HTTP.