Crosby512

SSL

Dec 19th, 2019
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. <?php
  2. // Require https
  3. if ($_SERVER['HTTPS'] != "on") {
  4. $url = "https://". $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
  5. header("Location: $url");
  6. exit;
  7. }
  8. ?>
Advertisement
Add Comment
Please, Sign In to add comment