• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 622
  • Last Modified:

exchange 2010 sp1 OWA redirect to SSL question

hello, we are using this method to redirect http://mail.mydomain.com to https://mail.mydomain.com/owa 
code saved below as default.htm and placed in inetpub / wwwroot folder
however we've noticed that users can still type: http://mail.mydomain.com/owa and connect on an unsecure channel. how can we modify this to catch http://mai.mydomain.com/.... requests and redirect to ssl
<head runat="server"> 
<title>Outlook Web Access</title> 
<script language="javascript" type="text/javascript"> 
function redirect() 
    var URL; 
    var Protocol; 
    var Path; 
    // this will be whatever is in the browser. If you need to change this then comment out relevant line below 
    // Protocol = window.location.protocol + "//" 
    // Protocol = "http://" 
    Protocol = "https://" 
    Path = window.location.hostname + window.location.pathname + "owa" 
    window.location.href = Protocol + Path 
<body onload="redirect()"> 

Open in new window

  • 2
  • 2
1 Solution

Follow instructions from link below, it worked for me.


Let me know if it helped you.
siber1Author Commented:
thx. thats a good option. is there a way to set the redirect on the hdw load balancer for all virtual directories, rather than use this script to modify the IIS settings?
that code will catch both http and https the issue is that on your default website you have the require ssl checkbox checked
as far as your hardware load balancer is concerned you need to check the documentation of the brand/model you have but yes you should be able to do that
siber1Author Commented:
thx again!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now