Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

SSL question - Is "base href" needed on pages?


westkoast

Recommended Posts

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...

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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...

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...