// the other frame to the file entry of a request to load the public co // https state method of IF (! Isset ( $ _SERVER [ 'the HTTPS']) || $ _SERVER [ 'the HTTPS'] == 'OFF' ) { header ( "the HTTP / 1.1 301 Moved Permanently" ); header ( 'the Location: HTTPS: //'. $ _SERVER . [ 'HTTP_HOST'] $ _SERVER [ 'the REQUEST_URI' ]); } // methods Analyzing two-port IF ( $ _SERVER [ 'SERVER_PORT'] == "80" ) { header ( "the HTTP / 1.1 301 Moved Permanently" ); header ( 'the Location: HTTPS: //'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']); }