By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,676 Members | 1,763 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,676 IT Pros & Developers. It's quick & easy.

<A> tag and SSL/HTTPS

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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.