百度 添加浏览器url_现在在现代浏览器中是否真的需要在网站URL中添加“ www”?...

news/2024/5/15 23:15:57/文章来源:https://blog.csdn.net/culiuman3228/article/details/108787451
百度 添加浏览器url

百度 添加浏览器url

omitting-www-from-website-urls-00

When we visit a website using our favorite browser, we usually just type in the basic part of the URL and ‘arrive’ at the desired location without any problems. But have we reached a point where we can start omitting ‘www’ from the URLs for all websites now, or is it still necessary to add it in?

使用最喜欢的浏览器访问网站时,通常只需输入URL的基本部分,然后“到达”所需的位置就不会出现任何问题。 但是,是否已经达到可以立即从所有网站的网址中省略“ www”的地步,还是仍然有必要添加它?

Today’s Question & Answer session comes to us courtesy of SuperUser—a subdivision of Stack Exchange, a community-driven grouping of Q&A web sites.

今天的“问答”环节由SuperUser提供,它是Stack Exchange的一个分支,该社区是由社区驱动的Q&A网站分组。

问题 (The Question)

SuperUser reader Celeritas wants to know if adding ‘www’ to website URLs makes a difference or not:

超级用户读者Celeritas想知道在网站URL中添加“ www”是否有所不同:

In modern web browsers, is there any point in putting ‘www’ in front of a website URL that uses it? When going to ‘www.facebook.com’ or ‘www.cbc.ca’, is there any benefit or difference made by omitting the ‘www’?

在现代网络浏览器中,将“ www”放在使用它的网站URL前面是否有意义? 转到“ www.facebook.com”或“ www.cbc.ca”时,省略“ www”有什么好处或不同之处?

Is it really necessary to add ‘www’ to website URLs now, or could you just omit it when browsing the internet and not experience any problems?

是否真的需要立即在网站URL中添加“ www”,还是在浏览Internet时就忽略它而不会遇到任何问题?

答案 (The Answer)

SuperUser contributor Synetech has the answer for us:

超级用户贡献者Synetech为我们提供了答案:

It usually doesn’t, but it could.

通常不会,但是可以

This has nothing to do with the browser; it has to do with the web-server. The web-server is a computer (or even multiple computers) which receive queries for web-pages and send the appropriate data. A URL includes several parts, one of which is the name or address of the web-server.

这与浏览器无关。 它与网络服务器有关。 网络服务器是一台计算机(甚至是多台计算机),用于接收网页查询并发送适当的数据。 URL包含几个部分,其中之一是Web服务器的名称或地址。

Many companies host more than just a web-server, they may also run an FTP-server, a database-server, a mail-server, and so on. These could be hosted from the same machine as the web-server or on different machines.

许多公司不仅托管Web服务器,还可以运行FTP服务器,数据库服务器,邮件服务器等。 这些可以从与Web服务器相同的计算机上托管,也可以在不同的计算机上托管。

In the past, it was common to specify the difference via a prefix for consistency. So for example, Acme Industries might buy the domain-name ‘acme.org’, then set up one or more computers to host the different services they have. When you want to use one of the services, you enter the appropriate host name:

过去,通常通过前缀指定差异以保持一致性。 因此,例如,Acme Industries可以购买域名“ acme.org”,然后设置一台或多台计算机来承载它们所提供的不同服务。 如果要使用其中一项服务,请输入适当的主机名:

omitting-www-from-website-urls-01

So why does it still work without ‘www’? Because most web-servers allow you to accept different URLs and redirect them as necessary. For the convenience of users, most companies and organizations set up a rule to have the web-server handle connections to the hostname on port 80 (the “web port”), or redirect it to another system if the web-server is a different machine.

那么,为什么没有“ www”仍然可以正常工作呢? 因为大多数Web服务器都允许您接受不同的URL并根据需要重定向它们。 为了方便用户,大多数公司和组织都设置了一个规则,使Web服务器处理与端口80(“ Web端口”)上的主机名的连接,如果Web服务器与主机名不同,则将其重定向到另一个系统机。

Differentiating the service or machine being accessed can also be done through the port, but it requires specifically including it in the name, so it’s not really any better than using prefixes:

也可以通过端口来区分要访问的服务或机器,但是它需要专门在名称中包括它,因此它实际上并没有比使用前缀更好:

omitting-www-from-website-urls-02

Sometimes the scheme can perform this function:

有时,方案可以执行此功能:

omitting-www-from-website-urls-03

Using schemes works as well and can be done automatically using the appropriate software (e.g., a browser would add ‘http://’, an email client would add ‘pop://’, etc.). But there are not official schemes for every type of server that can exist, and inventing one is not ideal because it would require software to support it.

使用方案同样有效,并且可以使用适当的软件自动完成(例如,浏览器将添加“ http://”,电子邮件客户端将添加“ pop://”等)。 但是,对于每种类型的服务器都没有正式的方案,发明一个方案也不理想,因为它需要软件来支持。

It’s becoming less and less necessary to include ‘www’, but it is not universal, and some sites still require it because it helps keep things organized.

包含“ www”的必要性变得越来越低,但是它并不是通用的,并且某些站点仍然需要它,因为它有助于使事物井井有条。

Most of the time we can happily (and easily) omit typing in the ‘www’ portion of URLs for our favorite websites, but there is always a possibility you may encounter the ‘rare’ website that still requires it.

在大多数情况下,我们可以(轻松地)忽略我们喜欢的网站的URL的“ www”部分,但是总有可能您遇到仍然需要它的“稀有”网站。



Have something to add to the explanation? Sound off in the comments. Want to read more answers from other tech-savvy Stack Exchange users? Check out the full discussion thread here.

有什么补充说明吗? 在评论中听起来不错。 是否想从其他精通Stack Exchange的用户那里获得更多答案? 在此处查看完整的讨论线程 。

翻译自: https://www.howtogeek.com/179378/is-it-really-necessary-to-add-www-to-website-urls-in-modern-browsers-now/

百度 添加浏览器url

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.luyixian.cn/news_show_821004.aspx

如若内容造成侵权/违法违规/事实不符,请联系dt猫网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

chrome浏览器拦截广告_如何禁用Chrome的新广告拦截器(在某些网站或所有网站上)...

chrome浏览器拦截广告Google Chrome now has a built-in ad blocker, designed to get rid of the ads that are intrusive or otherwise annoying, but allow ads from sites that follow specific guidelines. If you’re not into the idea of letting your browser control…

asp租用和saas租用_最佳下载,租用和购买有声读物的网站

asp租用和saas租用We recently published a list of websites where you can download free eBooks, or purchase, borrow, or rent eBooks. However, if you would rather listen to your favorite books, here are some websites offering audiobooks you can download, rent…

如何下载在线玩的游戏_在线下载游戏和玩游戏的最佳网站

如何下载在线玩的游戏This week we have a list of fun websites for you. Playing games can help relieve stress and provide a break from work. The following are some websites we found offering free online games, freeware games for download, or games you can pu…

谷歌搜索设置只在某网站搜索_Google助理可以在某一天为您打电话

谷歌搜索设置只在某网站搜索Last week Google demoed Duplex, an AI intended to make phone calls on users’ behalf. Depending on who you ask it’s either mind blowing or dystopic. 上周Google演示了Duplex,这是一种AI,旨在代表用户拨打电话。 根…

如何在Google Chrome浏览器中举报网络钓鱼和恶意网站

Google now makes it much easier to report “suspicious websites” in Chrome. Websites you might want to report include phishing websites, sites hosting malware, and similar bad things. Google will use these reports to block websites for everyone. Google现在…

如何在iPhone和iPad上的Safari中阻止网站

If you’re an iPhone or iPad owner (especially one whose children use your device), you might occasionally want to block access to a specific website. Whether that website is one of adult nature or just something, you don’t want your children to be able t…

编程爱好者网站_读书爱好者的最佳免费网站

编程爱好者网站For many people, reading is less of a hobby and more of a passion. Here are some of the best websites for the book lover in all of us. 对于许多人来说,阅读不再是一种爱好,而是一种激情。 这是我们所有人中对于书迷的最佳网站。…

python爬虫捕鱼网站_古法捕鱼,千年绝技

文:魔力 图:来自网络先民在进入农耕文化之前,打渔狩猎才是他们的谋生手段。经过了千百年,先辈们用经验和智慧创造许多捕鱼的方法。原来先辈创造的捕鱼方法,人们现在已经不再使用。我们现在看到的都是炸鱼、毒鱼、电鱼……

草根站长心酸路:你的网站后来怎么样了?

作为一个站长,下面这些你一定都懂:1、没有资金,连空间都用免费的2、没有技术,连域名都不知道怎样解析3、没有人缘,碰到问题没有人能够帮助4、受人鄙视,有时请教一些所谓的高手,等了48小时后都得…

针对单个网站的渗透思路(精)

本人Web安全初学者,从老师那里获得了一套很完整的针对单一网站的渗透思路今天起的早,就自己试着总结一份,记下来。分享给大家。首先,当我们拿到一个网站的域名或者IP的时候。最先要做的是信息收集。下面着重介绍一下信息收集模块一…

关于为什么同一网站下返回的404页面不一样

今天在上班的时候偶然发现访问同一个网站,不同目录时返回的404页面不同。具体效果如下:情况1:情况2:因为是公司签了保密协议的东西,漏洞还未修复,所以我把IP盖住了,不过这俩确实是同意网站不同路…

ipad和iphone适配_如何在iPhone和iPad上通过搜索打开应用程序,网站和快捷方式

ipad和iphone适配Khamosh PathakKhamosh Pathak If you’re not using the Search feature on your iPhone or iPad, you’re missing out. Instead of using the home screen to launch apps or Safari to open web pages, try using the universal search feature for a much…

sharepoint 2010 网站集定期备份

SharePoint 2010 是为企业用户提供基于微软SharePoint平台的工作流扩展。用户无需编写代码就可以快速、便捷地设计任务表单和业务流程,从而帮助企业用户进一步拓展SharePoint平台的内容管理,内外部协同和企业业务流程管理能力,并可将SharePoi…

响应式网站与自适应网站比较

Adaptive website(自适应网站) 应对在浏览器的宽度变化不调整网页元素的位置,缩放网页元素,以适应在可用空间。 Responsive website (响应式网站) 应对在浏览器的宽度变化通过调整网页元…

网站重定向次数过多怎么解决_面试官:CPU飙高及Full GC次数过多怎么排查?

处理过线上问题的同学基本上都会遇到系统突然运行缓慢,CPU 100%,以及Full GC次数过多的问题。当然,这些问题的最终导致的直观现象就是系统运行缓慢,并且有大量的报警。本文主要针对系统运行缓慢这一问题,提供该问题的排…

网站服务器无法打开ie,internet explorer无法打开站点怎么办

Internet explorer无法打开站点原因与解决办法:1.由于网站本身的原因或网站服务器原因可能导致Internet Explorer无法打开解决办法:我们可以尝试多打开几个网页试试。最好打开一些指名网站,如百度、163等门户网站试试。这里需要注意的是&…

ASP.NET Core 一步步搭建个人网站(7)_Linux系统移植

摘要 考虑我们为什么要选择.NET Core? 因为它面向的是高性能服务器开发,抛却了 AspNet 的臃肿组件,非常轻量,加上微软的跨平台战略,对 Docker 的亲和性,对于开发人员也非常友好,所以整体环境来说…

七、随需应变:网站的可扩展架构

为什么80%的码农都做不了架构师?>>> (1)构建可扩展的网站架构 (2)利用分布式消息队列降低系统耦合性 1.事件驱动架构。 通过低耦合的模块之间传输事件消息,以保持模块的松散耦合,…

django搭建一个小型的服务器运维网站-重启服务器的进程

目录 项目介绍和源码; 拿来即用的bootstrap模板; 服务器SSH服务配置与python中paramiko的使用; 用户登陆与session; 最简单的实践之修改服务器时间; 查看和修改服务器配置与数据库的路由; 基于websocket的实时日志实现…

Bootstrap手机网站开发案例

Bootstrap手机网站开发案例 一、总结 一句话总结:Bootstrap手机网站开发注意事项(3点):a、引入viewpoint声明,b、通过屏幕宽动态控制元素显隐 c、图片添加自适应 1、Bootstrap手机网站开发注意事项(3点&…