<A> tag and SSL/HTTPS

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • wannaknow@yutzyz.com

    <A> tag and SSL/HTTPS

    Do I have to use a fully qualified url when putting an <A HREF=> tag
    on my web page?

    I wish I could do this :
    <a href="https://[pagetitle].asp">[pagetitle]</a>

    or:
    <a href="[pagetitle].asp:443">[pagetitle]</a>

    or something else. It seems to get to the secure port it wants the
    full url with domain and everything.

    Any ideas on how to simplify the link?

  • Harlan Messinger

    #2
    Re: &lt;A&gt; tag and SSL/HTTPS

    wannaknow@yutzy z.com wrote:
    [color=blue]
    >Do I have to use a fully qualified url when putting an <A HREF=> tag
    >on my web page?
    >
    >I wish I could do this :
    ><a href="https://[pagetitle].asp">[pagetitle]</a>
    >
    >or:
    ><a href="[pagetitle].asp:443">[pagetitle]</a>
    >
    >or something else. It seems to get to the secure port it wants the
    >full url with domain and everything.
    >
    >Any ideas on how to simplify the link?[/color]

    Unfortunately, you can't. When you use a relative URL, everything that
    precedes it is assumed to be the same as its counterpart for the
    current page. For a URL like

    /site/dir/subdir/page.html

    the protocol, host, and port are taken to be the same as for the
    current page. For a URL like

    page.html

    the protocol, host, port, and directory are taken to be the same as
    for the current page.

    --
    Harlan Messinger
    Remove the first dot from my e-mail address.
    Veuillez ôter le premier point de mon adresse de courriel.

    Comment

    Working...