vijdev Posted June 15, 2010 Share Posted June 15, 2010 after u get SSL, how to control which page has https and which has http? Quote Link to comment https://forums.phpfreaks.com/topic/204853-how-to-control-which-page-has-https-and-which-has-http/ Share on other sites More sharing options...
jbrown84 Posted June 15, 2010 Share Posted June 15, 2010 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'; Quote Link to comment https://forums.phpfreaks.com/topic/204853-how-to-control-which-page-has-https-and-which-has-http/#findComment-1072587 Share on other sites More sharing options...
vijdev Posted June 15, 2010 Author Share Posted June 15, 2010 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? Quote Link to comment https://forums.phpfreaks.com/topic/204853-how-to-control-which-page-has-https-and-which-has-http/#findComment-1072612 Share on other sites More sharing options...
jbrown84 Posted June 15, 2010 Share Posted June 15, 2010 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> Quote Link to comment https://forums.phpfreaks.com/topic/204853-how-to-control-which-page-has-https-and-which-has-http/#findComment-1072622 Share on other sites More sharing options...
vijdev Posted June 15, 2010 Author Share Posted June 15, 2010 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!... Quote Link to comment https://forums.phpfreaks.com/topic/204853-how-to-control-which-page-has-https-and-which-has-http/#findComment-1072626 Share on other sites More sharing options...
jbrown84 Posted June 15, 2010 Share Posted June 15, 2010 Maybe. Like I said, I haven't had to touch anything like that in a while but that's what I remember. Let me know if it works, just out of curiosity Quote Link to comment https://forums.phpfreaks.com/topic/204853-how-to-control-which-page-has-https-and-which-has-http/#findComment-1072628 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.