Redirect 域的DNS级别上的通配符重定向

Redirect 域的DNS级别上的通配符重定向,redirect,dns,namecheap,Redirect,Dns,Namecheap,假设我有domain long\u domain\u name.tld,并希望使用short.tld作为别名long\u domain\u name.tld的短域名,但在我的DNS设置中,当我将short.tld的URL重定向记录设置为重定向到long_domain_name.tld时:类似short.tld/x/y的URL将重定向到long_domain_name.tld,但我想重定向到long_domain_name.tld/x/y 问题: 如何将short.tld/*设置为在DNS级别重定

假设我有domain long\u domain\u name.tld,并希望使用short.tld作为别名long\u domain\u name.tld的短域名,但在我的DNS设置中,当我将short.tld的URL重定向记录设置为重定向到long_domain_name.tld时:类似short.tld/x/y的URL将重定向到long_domain_name.tld,但我想重定向到long_domain_name.tld/x/y

问题:
如何将short.tld/*设置为在DNS级别重定向到long\u domain\u name.tld/*?

没有DNS级别的重定向。一些DNS托管提供商提供了这一功能,但这本质上是一个HTTP web服务器/应用程序,它通过重定向进行响应,因此答案非常特定于DNS提供商,应该在其文档中或在其支持下进行搜索

也就是说:,如果是namescape,您需要在目标URL的末尾添加一个正斜杠:

一旦您将此特殊符号添加到http://destination.tld >> http://destination.tld/ ,URL domain.tld/xyz.html或 domain.tld/home将用户重定向到 http://destination.tld/xyz.html 或http://destination.tld/home 如果子文件夹/xyz.html或/home存在,则分别为 在destination.tld上

放入原始URL domain.tld/anything的所有值 将包含在目标地址中并应用于结果中 http://destination.tld/anything.