网址中多余的点分隔 [英] Extra dot separations in url

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

问题描述

网站如何在网址中实现多余的点以指向不同的资源?
例如. 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,则需要将子域名指向Web资源的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-记录(DNS记录的名称)-1.2.3.4(托管网站的Web服务器的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天全站免登陆