Visualizando artigos com TAG 'Forçar HTTPS com PHP ou .htaccess'

 Forçar HTTPS com PHP ou .htaccess

Como fazer usando PHP: <?php if($_SERVER['SERVER_PORT'] != '443') { header('Location:...