467,074 Members | 1,006 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,074 developers. It's quick & easy.

<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?

Jul 20 '05 #1
  • viewed: 2525
Share:
1 Reply
wa*******@yutzyz.com wrote:
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?


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.
Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Donald Firesmith | last post: by
4 posts views Thread by Guillaume CABANAC | last post: by
reply views Thread by Haffe | last post: by
3 posts views Thread by ajay2552 | last post: by
44 posts views Thread by Zytan | last post: by
2 posts views Thread by Rainer Queck | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.