“子域”在我的网站名称之后
有没有办法动态创建一种在我的网站域和 .com 之间的子域?
例如,www.onlinevet.com 类似于:
www.onlinevet.dog.com
www.onlinevet.cat.com
Is there a way to dynamically create a kind of sub-domain that goes between my website domain and the .com?
For instance, www.onlinevet.com would be something like:
www.onlinevet.dog.com
www.onlinevet.cat.com
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
这是不可能的,因为域是以分层方式从右到左处理的,这意味着每个域都是紧邻其右侧的域的子域。要创建子域,它必须显示在您域名的左侧。您可以创建
一个狗子域注册到 onlinevet.com,但不能
创建一个 onlinevet 子域注册到dog.com
That's not possible as domains are processed from right to left in a hierarchical manner meaning that each domain is a subdomain of the domain immediately to it's right. To create a subdomain, it must appear to the left of your domain name. You could create
as that would have a dog subdomian registered to onlinevet.com, but not
as that would have a onlinevet subdomain registered to dog.com
正如约翰·韦尔登所说,您将使用单独的域。 “dog.com”是它自己的顶级域名,“cat.com”也是如此。因此,您必须拥有dog.com 域名和cat.com 域名才能为每个域名创建“onlinevet”子域。
As John Weldon says, you would be using separate domains. "dog.com" is it's own top-level domain, as is "cat.com". So you'd have to own the dog.com domain name and cat.com domain name to create your "onlinevet" subdomains for each of those.
不,只有相反。
要执行您所请求的操作,您需要拥有域名“dog.com”和“cat.com”。
子域名始终位于您的域名之前:
subdomain.domain.tld
,例如horses.cats.com
。仅当您拥有“cats.com”时,您才可以创建子域“horses”。No, only the other way around.
To do what you are requesting, you need to own the domain name "dog.com" and "cat.com".
A subdomain always come before your domain name:
subdomain.domain.tld
, for examplehorses.cats.com
. You can create the subdomain 'horses', only if you own 'cats.com'.