So I wanted to re-direct my http requests internally to https for my outlook web app users for my owa url's. Its rather simple really but you have to be very careful because if you make a minor mistake then owa will stop working all-together.
Lets take my example, my owa urls are as shown below
Now I wanted that if my users open up a web browser and go to http://owa.alstar.com or owa.alstar.com it should re-direct the request to a secure page of https://owa.alstar.com
In order to achieve this we need to change some setting on the Default Web Site.So open up your IIS Manager on the server and select "Default Web Site" and go to "Http Re-Direct" and under that enter in the required information according to your setup as below.
Once you set the above URL the way it works is it propagates down to all the other virtual directories as well and we don't want that so after you have set the re-direction URL as shown above you need to go to the below virtual directories and un-check the re-direction.
After this you need to go back to your Default Web Site and this time go to "SSL Settings" and un-check the "Require SSL" option
Again like before if you un-check Require SSL for the Default Web Site it filters down to the other virtual directories as well so make sure SSL is checked back again for the below directories.
Now open up powershell or the exchange management shell and type IISRESET
After this open up a web browser and go to http://locahost on your server and it should re-direct your request to the page you have set.. in my case it re-directed me to https://owa.alstar.com
Once the re-direction is working you will have to go ahead and modify the web.config file so that the OAB is not broken, CLICK HERE and follow the post to fix the OAB