Posted By

traeregan on 10/07/09


Tagged

https force


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

benediktvaldez


Force HTTPS


 / Published in: PHP
 

  1. if('on' !== $_SERVER['HTTPS'])
  2. {
  3. header('Location: https://www.yourdomain.com');
  4. }

Report this snippet  

You need to login to post a comment.