Jump to content

How to automatically make page reroute to https?


ghurty

Recommended Posts

http://www.php.net/manual/en/reserved.variables.server.php

 

$_SERVER['HTTPS']

Set to a non-empty value if the script was queried through the HTTPS protocol.

Note: Note that when using ISAPI with IIS, the value will be off if the request was not made through the HTTPS protocol.

 

As opposed to HTTP URLs which begin with "http://" and use port 80 by default, HTTPS URLs begin with "https://" and use port 443 by default.

 

 

juse use

header("Location: https://sample.com"):

 

or <meta refresh="0:url=https://sample.com" />

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.