I have set up a couple of web sites where all the links are specified as relative paths - e.g. 'contact.shtm', 'graphics/logo.gif' etc. However, when a secure page is called to capture sensitive data, I need to use a full path with 'https' prefix. The majority of these links are held in an 'include' file, drawn in at run-time as Server Side Include.
Of course thereafter, all my relative links are 'corrupted' as all will inherit an implies 'https' prefix.
What is the best way around this? If I use absolute paths (e.g. ' then I create a problem in my test environment where the host is different. I suppose, ideally, I would trap the situation when the user leaves the secure page but I'm not sure how I'd go about that.
Thanks in advance.
Of course thereafter, all my relative links are 'corrupted' as all will inherit an implies 'https' prefix.
What is the best way around this? If I use absolute paths (e.g. ' then I create a problem in my test environment where the host is different. I suppose, ideally, I would trap the situation when the user leaves the secure page but I'm not sure how I'd go about that.
Thanks in advance.