Skip to Content
Node与Express开发(第2版)
book

Node与Express开发(第2版)

by Ethan Brown
June 2021
Intermediate to advanced
290 pages
9h 21m
Chinese
Posts & Telecom Press
Content preview from Node与Express开发(第2版)
上线
|
243
够精确体现其组织的域名。选择域名时,应该考虑域名要怎么用。如果计划主要用于在线
的市场推广(人们更有可能点击链接而不是手动输入域名),就应该更看重易记的或有意
义的域名,而不是短域名。如果你关注的是推送广告,或者有理由相信人们会把你的
URL
手动输入到设备里,或许应该考虑其他的顶级域名,以便获得一个更短小的域名。使用两
个域名也是很常见的做法:一种是短小的、易于输入的;一种是更长一些的、更适合市场
推广的。
21.1.4
 子域名
顶级域名是域名的末尾部分,子域名则是开头部分。目前为止,最常见的子域名是
www
。
我从来没有特别注意过这个子域名,毕竟,你就在计算机上使用着万维网。可以很肯
定地说,即使没有
www
提醒你自己正在干什么
,你也不会感到疑惑。因此,对你的主
域名,我不推荐使用子域名。直接使用
http://meadowlarktravel.com/
而不是
http://www
.
meadowlarktravel.com/
,这样域名就可以变得更简短
,而且多亏了重定向,对于那些不管
访问什么都自动地在前面加上
www
的人,他们的访问也不会有丢失的危险。
子域名也被用于其他的目的。我经常见到类似于
blogs.meadowlarktravel.com
、
api.meadowlarktravel.com
和
m.meadowlarktravel.com
(用于移动版网站)这样的域名。这样
做常常是出于技术的原因。例如,如果跟网站的其他部分相比,你的博客使用的是完全不
同的服务器,那么让博客使用一个子域名就会更加容易。不过 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

面向对象的思考过程(原书第5版)

面向对象的思考过程(原书第5版)

马特 魏斯费尔德
精通模块化JavaScript

精通模块化JavaScript

Nicolás Bevacqua

Publisher Resources

ISBN: 9787115565099