smartalco Posted June 13, 2007 Share Posted June 13, 2007 is there a way to use https:// without linking to the doc root?ie: keep the short and clean code of '<a href="link.html">' but have the security of '<a href="https://www.whatever.com/link.html">' Link to comment Share on other sites More sharing options...
aalbetski Posted June 13, 2007 Share Posted June 13, 2007 no Link to comment Share on other sites More sharing options...
smartalco Posted June 13, 2007 Author Share Posted June 13, 2007 that in no way answered my question :/all im asking is if there is a way to substitute '<a href="https://www.whatever.com/link.html">' with something like this (except functional) '<a href="https:links.html">' Link to comment Share on other sites More sharing options...
boen_robot Posted June 13, 2007 Share Posted June 13, 2007 I believe there isn't. In any way, it shouldn't matter, as you should only have a few secure pages where you really need to protect entered data (login page, payment page, etc.) but not other pages (browsing page, product information page, etc.). For those few pages, the extra times should be worth it. Link to comment Share on other sites More sharing options...
Skemcin Posted June 13, 2007 Share Posted June 13, 2007 It is not possible to move from a secure environment to an unsecure environment without using an absolute link. However, if you are using a server side scripting language then you can set variables on pages that define whether they should have been requested using an SSL. Your little script could then redirect the user to the same page but with the SSL loaded - but again only by using an absolute URL.With my example, all your links and what not can be relative "../../" or absolute "/folder/" without specifying the "http://" or "https://". The only problem is that you will end u with alot of server side redirects and could easily have pages that do not require and SSL to be loaded in an SSL - which can be a performance hit (as small as it may be).So, its possible, but only with a server side scripting language and a system of labeling all your files to define whether or not they are secure.Hope that helps. Link to comment Share on other sites More sharing options...
aalbetski Posted June 13, 2007 Share Posted June 13, 2007 sorry, i misunderstood Link to comment Share on other sites More sharing options...
croatiankid Posted June 13, 2007 Share Posted June 13, 2007 his question is clear. he wants to link to a file via https from a http file using a relative link, not an absolute. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.