网址中的额外点分隔 [英] Extra dot separations in url

查看:29
本文介绍了网址中的额外点分隔的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

网站如何在其 url 中实现额外的点以指向不同的资源?
例如.trecoolable.wordpress.com

How do websites implement extra dots in their url's to point to different resources?
eg. trecoolable.wordpress.com

如果我希望不同的用户在我拥有一个域名时拥有他们自己的唯一 url,我将如何实现这一点?

And how would I be able to implement this if I want different users to have their own unique url when I have one domain name?

推荐答案

这称为子域.您可以在您的域名区域(也称为 DNS 设置)中进行设置.此域区域在您的 DNS 提供商(域名注册商或托管提供商)的帐户中可用.

This is called a sub-domain. You may set it up in your domain name zone (also called DNS settings). This domain zone is available in the account of your DNS provider (Domain Name Registrar or Hosting Provider).

在 DNS 设置中,比方说,您可以将子域(blog.yourdomain.com 或 news.yourdomain.com 等)重定向到不同的 URL、连接到某个网站甚至指向不同的服务器.

In DNS settings you may, let's say, redirect a sub-domain (blog.yourdomain.com or news.yourdomain.com, etc) to a different URL, connect to a certain website or even point to a different server.

如果您希望您的用户拥有基于您的域名的唯一 URL,您需要将子域名指向网络资源的 IP 地址.这可以在 DNS 设置中的 A 记录的帮助下完成.例如:

If you want your users to have a unique URL based on your domain name, you will need to point the subdomain name to the IP address of the web-resourse. This can be done with the help of A record in the DNS settings. For example:

youruser.domainname.com - A 记录(DNS 记录的名称)- 1.2.3.4(托管网站的网络服务器的 IP 地址等)

youruser.domainname.com - A record (the name of DNS record) - 1.2.3.4 (the IP address of a web-server where the website is hosted. etc)

这篇关于网址中的额外点分隔的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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