使用DNS重定向到具有路径的另一个URL [英] Using DNS to redirect to another URL with a path

查看:164
本文介绍了使用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.

这篇关于使用DNS重定向到具有路径的另一个URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆