Jump to content

how to control which page has https and which has http?


vijdev

Recommended Posts

Are you trying to determine if the current page has SSL? If so you could try something like:

 

$request_type = (getenv('HTTPS') == 'on') ? 'SSL' : 'NONSSL';

 

not really, mine is more basic.after getting the SSL for my domain, how do i control which pages get https, and which dont?

Oh ok. I haven't used that in a while but I thought you just determine that when creating links. So if "cart.php" needed ssl, for example, you would have <a href="https://example.com/cart.php">Cart</a>

 

vow really?..that simple?...nice!...

Archived

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

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.