【发布时间】:2014-08-20 10:22:05
【问题描述】:
我一直在阅读有关 url 的信息。绝对,方案相对,根相对,位置相对。
我仍然不明白这两者之间的区别:
//domain.com/index.html - scheme relative
domain.com/index.html - ?
。
问题 1:
如果我错了,请纠正我//domain.com/index.html 将解析为这样的绝对网址:
http://domain.com/index.html
https://domain.com/index.html
ftp://domain.com/index.html
file://domain.com/index.html -- if in email
而且浏览器的行为会有所不同:ie6 不支持,ie7,8 会获取两次数据(http https)。
。
问题 2:domain.com/index.html 将如何解决?与 Q1 中的方案相对 url 相同吗?或者是别的什么?
。
问题 3:
这些网址之间有什么区别,是什么,为什么?
//www.domain.com/index.html
www.domain.com/index.html
。
问题 4://www.domain.com/index.html 将如何解决?
。
问题 5:www.domain.com/index.html 将如何解决?
【问题讨论】:
标签: http url web https protocols