Link to home
Start Free TrialLog in
Avatar of EddieGomez
EddieGomez

asked on

How do I specify the href= from HTTP to HTTPS using relative paths instead of qualified paths?

Our website uses relative paths to access various folders to display the html content:
<a href="../home/index.html>
<a href="../travel/index.html>

For obvious reasons, I want to keep the paths in the href tag relative since we tend to move around site to various servers.

We have one page that is an account maintenance page that we want to use with a secure session (HTTPS:)

I do not want to hardcode the path in the href tag (i.e. <a href="https://www.website.com/account/index.html">

I have tried finding reference material but everything points to using a hard-coded approach.

Can I use a relative href declaration to use HTTPS: instead of HTTP: for a single page??

Much obliged!
ASKER CERTIFIED SOLUTION
Avatar of Frosty555
Frosty555
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of EddieGomez
EddieGomez

ASKER

Thanks for the quick response!  I had a feeling it that would be the case.  You gave me some good ideas to go with.  Thanks a bunch!