①. How to use the alias (CNAME) record: In the domain name resolution in the previous post, only the resolution of A records was mentioned. A records are suitable for single-threaded spaces such as China Telecom or China Netcom. Such spaces generally only provide one IP, so A records must be used for resolution. However, if you purchased a dual-line space from Super Vision, since the space has two IP addresses, China Telecom and China Netcom, high-speed access can be achieved for different users; then an alias (CNAME) record will need to be used when resolving the domain name. Taking my space in Super Vision as an example, I can log in to the space management and see the IP information of the space: From the "IP Address" column in the above picture, you can see that in addition to a Telecom IP and a Netcom IP, my dual-line space also has an "Intelligent Resolution CNAME" address of "yys113.sudu.hi.cn." This address is used for CNAME records. Go back to the domain name management page. I take bbs.6read.com as an example. In "Alias (CNAME)", click "Add New Alias", as shown below:
Fill in "bbs" in front of the domain name, and fill in the smart CNAME address "yys113.sudu.hi.cn." provided by the space in the "Alias Host" column. It should be noted here that there is a "." after the CNAME address. When entering, do not forget to enter this dot. If you forget, the resolution may not be successful. After entering, click "Submit". After the alias (CNAME) record is resolved, go to the place where you purchased the space, log in to the space management backend, and bind the resolved domain name to the space. The method of binding the space is the same, which has been mentioned in the previous post, so I will not explain it here. If you still don’t understand, you can go to “ Daily Post for Newbies on Website Building ②: Domain Name Resolution and Binding ” to check. ② URL forwarding and setting method: What is URL forwarding and what are the benefits of URL forwarding? As the name suggests, forwarding means transferring to another address. Everyone knows that to open a website, you can access it by entering the address with or without "www" in the address bar. For example, in my Joyo online bookstore, you can enter my site by typing www.6read.com , and you can also visit my website by typing 6read.com . How is this achieved? There are two ways to achieve this. The first is to resolve both the domain name with www and the domain name without www to the space; but in this case, search engines such as Baidu will regard your two domain names as two sites, which will result in completely duplicate content, so it is not good for SEO. The second method is to use URL forwarding. For example, you can use the URL to forward my 6read.com to www.6read.com . In this way, when you visit 6read.com, you will be directly redirected to the domain name with www, and this jump method is recognized by search engines. This solves the problem of being able to access the site in two ways without having duplicate content. URL forwarding can also be used on multiple domain names. For example, Google China’s www.g.cn uses URL redirection to directly jump to www.google.cn . Here's how to set up URL forwarding: 1) Enter the URL forwarding settings page; 2) Click "Add new URL forwarding record" above; 3) Since I want to forward 6read.com to www.6read.com , I leave the "Host Name (URL)" field blank, enter www.6read.com in the "Forwarding Address" field , select "Not Hide" in "Whether to Hide" and click "Submit": The URL forwarding is now set up. After it takes effect, enter 6read.com in the address bar of the browser and it will automatically jump to www.6read.com . What needs to be explained is "whether to hide". In some places, if you choose not to hide the site, you can access the site normally after the jump, but you will see the address before the jump in the address bar, which will not happen after hiding it. However, in some places, if you want to hide it, you need to submit an application such as fax, which is very troublesome. Anyway, what we want to achieve is to be able to jump normally. Whether it is hidden or not will not affect our jump, so there is no need to care too much about whether it is hidden or not. Okay, that’s all for today. Today's summary: I explained the settings of "Alias (CNAME)" records and "URL forwarding" settings. Tomorrow's preview: Can two websites be placed in one space? If so, what are the conditions and how to set it up? Tomorrow I will explain the binding of subdirectories. |
<<: The whole process of installing mysql5.7.22 under ARM64 architecture
>>: Solution to the problem of saving format in HTML TextArea
Copy code The code is as follows: <!DOCTYPE ht...
Table of contents Overview Four examples Example ...
Text truncation with CSS Consider the following c...
<br />I have been working in front-end for s...
The Flexbox layout module aims to provide a more ...
Hyperlinks are the most frequently used HTML elem...
Table of contents 1. Help Command 2. Mirror comma...
This article will examine the ES6 for ... of loop...
Copy code The code is as follows: <!--[if !IE]...
Table of contents 1. Mysql data structure 2. The ...
sort Sort the contents of a text file Usage: sort...
In this article, I will show you how to develop a...
The VMware Workstation Pro version I use is: 1. F...
Page: base: <template> <div class="...
1. Go to the official website to download the jdk...