westkoast Posted April 16, 2004 Posted April 16, 2004 For some reason the code below: <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> Causes the "lock" symbol not to show up when we are SSL protected. If I remove the above text everything works fine. Is the "base href" needed? Or can I just delete this code from ALL pages? Thanks, H. I need to read the rules more often...
♥Vger Posted April 16, 2004 Posted April 16, 2004 I think that those who actually coded osCommerce would be the best ones to answer that - but my guess is that it is needed. osCommerce uses 'includes' and 'required' to pull content from many files into one page, and most pages also pull in the central content froma page higher up in the file structure, and I think that it is for this reason that base href is needed. If you are having problems with losing the ssl lock I would look again at your config files, because I don't remember this being a problem I've encountered. Vger
westkoast Posted April 17, 2004 Author Posted April 17, 2004 I agree that it probably should be there. The only problem is the "or" logic there never goes off. So all my pages with the above code get the "http://" for the image tags, and this leads to the lock breaking. I need to read the rules more often...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.