la***********@zipmail.com wrote:
Is there any notation that would allow me to write a reference to an
HTTPS page without specifying the entire url? For example, right now I
have
<a href="order_form.html">Order Here</a>
I'd like the order form page to appear
"https://mydomain.myhost.com/order_form.html" without writing the
entire url out. Is that possible?
Hmmm... I don't think so, though there's a method of doing a kind-of
"reverse" thing, specifying the hostname without specifying a URI
scheme, with the little-used relative URI syntax starting with a double
slash:
<a href="//hostname.example.org/path/file.html">
which would be dereferenced as
"https://hostname.example.org/path/file.html" if the original page was
accessed via https, or "http://hostname.example.org/path/file.html" if
the original page was accessed via http (and similarly for other
protocols such as ftp). This has occasional (but rare) use when you
have documents accessible by multiple protocols and wish to link them
to other documents of a similar nature in other hosts using the same
protocol by which the user accessed the first document.
There isn't any way to do the opposite and specify the scheme but not
the host, however, since relative URIs aren't allowed to include a
scheme.
--
Dan