8

SSL lock does not show in browser addres bar with location contains .php

view full story
linux-howto

http://serverfault.com – I have installed SSL Certificate in my hosted machine. And Forced to redirect it to "https" location. It also work when it redirected to location containing .html ext. But total failed when redirecting to location containing .php ext. In Coding my change was - $ssl_cer = TRUE; if ($ssl_cer && isset($_SERVER['HTTPS'])) { header('Strict-Transport-Security: max-age=500'); } elseif ($ssl_cer && !isset($_SERVER['HTTPS']) ) { header("HTTP/1.1 301 Moved Permanently"); header("Location: https://" . $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"]); exit(); } A (HowTos)