Below the codes will explain to detect if URL is secured ssl with php, .net or java in https. If not, then code will automatically change to the secured page from http to https. Sometimes you may need to know that the payment(secure) page is loaded via t