No piss to hide such beauty!
Subtracted on the
blog of Comrade
Bolk a completely amazing thing - a description of the Common Internet Scheme Syntax.
In short, if you need the page to be visible both via HTTPS and HTTP, but you have to use links on this page with absolute paths, do not write http or https in the links on this page - write "//"!
')
The browser itself will substitute the current scheme, be it HTTP or HTTPS.
For a more detailed description, I think it's worth reading
the blog entry itself .
PS if you want to add, then plus
Bolk !
TestcaseUPD: Nigma and Google say that such links will be indexed.
UPD2: As Bolk rightly noted, in RFC 3986 this notation is also described in the Relative Reference section (http://tools.ietf.org/html/rfc3986#section-4.2)