Skip to content

Instantly share code, notes, and snippets.

@stylephreak
Created September 24, 2009 07:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stylephreak/192599 to your computer and use it in GitHub Desktop.
Save stylephreak/192599 to your computer and use it in GitHub Desktop.
CMSMS tag - Forces a CMS Made Simple page to use https
// CMSMS tag - Forces a CMS Made Simple page to use https
if(emptyempty($_SERVER['HTTPS']))
{
// If not, redirect
$newurl = 'https://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
header("location: $newurl");
exit();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment