Hi all,
Regarding the variable $_SERVER['SERVER_PORT'] - when using SSL is the value always 443?
I want to force a redirect to ssl for specific pages, and thought this would be a way to do it:
Is there a better way?
Thanks!
![[cheers] [cheers] [cheers]](/data/assets/smilies/cheers.gif)
Cheers!
Laura
Regarding the variable $_SERVER['SERVER_PORT'] - when using SSL is the value always 443?
I want to force a redirect to ssl for specific pages, and thought this would be a way to do it:
Code:
if ($_SERVER['SERVER_PORT'] != 443)
//redirect to [URL unfurl="true"]https://page[/URL]
Is there a better way?
Thanks!
![[cheers] [cheers] [cheers]](/data/assets/smilies/cheers.gif)
Cheers!
Laura