Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HTTP AND HTTPS

Status
Not open for further replies.

brantGuy

Programmer
Feb 12, 2007
59
CA
My website was going to
but recently i had the need to switch it to
what I need to do now is get the traffic that goes to the http to be automatically redirected to the https version... but I have no clue as to do this...

iis version = 6
site language is Coldfusion
 
Using Coldfusion you can do it like:

Code:
<cfif cgi.HTTPS EQ 'Off'>
<cfset redirecturl = "[URL unfurl="true"]https://www.example.com">[/URL]
</cfif>

Hope this helps

Wullie

YetiHost - Quality Coldfusion 7/Windows Hosting

The pessimist complains about the wind. The optimist expects it to change. The leader adjusts the sails. - John Maxwell
 
Hey

I got that part

my problem is that the http version is now briging up a "page cant be displayed" screen...nothing is resolving to it...

seems like I can get http to work or https independantly but not both concurrently
 
In IIS - Website properties, directory Security Tab, Secure communications, Click the Edit -Button. Uncheck "Require Secure Channel (SSL).

Your site will still use SSL when clinets go to HTTPS. But with this checked clients are unable to use HTTP.
 
FYI - Require SSL doesn't mean turn on/off SSL. It means this site uses only SSL (box checked) - or - use both SSL 443 and HTTP 80 (box unchecked).
 
it was unchecked...

I just got the certificate revoked and reissued

gonna put secure section under secure.shooz.ca and unsecured under shooz.ca

hope this will work


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top