![]() |
| SSL Question |
|
eriweb
|
Hello all,
When a user navigates to my site and if they are not using https I would like to programmatically with coldfusion add the https instead of them seeing the You must use a secure channel https:// error. Can anyone please help? Thanks. |
||||||||||||
|
|
|||||||||||||
|
Jason101
Forum Regular
|
What you need to do, is check the CGI.SERVER_Port.
On a standard HTTP page, it will report the port as 80. But when you are within HTTPS, it will report the port as 443. So In your application. CFC or cfm file you can do something like this: Say you want to secure your checkout:
There are other more efficient ways of doing this rather than checking directories and filenames everytime and redirecting. Hope this helps |
||||||||||||||
|
|
|||||||||||||||
|
Connie
|
I dealt with something like this recently, first, set it up in IIS so that only https connections were allowed, then configured a custom 403 error that would redirect the user.
|
||||||||||||||
|
|
|||||||||||||||
| SSL Question |
|
||
|


