Skip to content

Instantly share code, notes, and snippets.

@juananruiz
Created November 21, 2011 13:34
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 juananruiz/1382627 to your computer and use it in GitHub Desktop.
Save juananruiz/1382627 to your computer and use it in GitHub Desktop.
Cambiar a https
<?php
# Cambiar a HTTPS
if (empty ($_SERVER["HTTPS"])) {
header ("Location: https://".$_SERVER["SERVER_NAME"].$_SERVER["PHP_SELF"]);
exit (0);
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment