difference between "/page" and "http://www.domain.com/page"
<a href="/page"> my page</a>
and
<a href="http://www.domain.com/page"> my page</a>
Obviously I'm saying that both urls points to the same site (the domain for "/page" is www.domain.com)
Thanks!
No. URIs specified as an absolute path are always rooted at the base of the URI space (note that some schemes do not support the concept of a "base" though).
No, not unless domain.com is your site. Omitting the domain will always have the link point to an internal document.
However,
<a href="/page"> my page </a>
and
<a href="page"> my page </a>
can be different. The one with the slash infront will try to get a document starting from the web root.
精彩评论