Configure URL Redirection in Exchange 2013, Redirect HTTP to HTTPS and Redirect domain mail.xpertstec.com to OWA
I need the domain mail.xpertstec.com to be used by clients to access the Exchange webmail. Similarly, https://mail.xpertstec.com/ecp will be used by the administrator to access the EAC console from outside. So we need to redirect the URL, mail.xpertstec.com to https://mail.xpertstec.com/owa.
Redirect HTTP to HTTPS
Configure URL Redirection in Exchange 2013
1- Open IIS manager in your Exchange server > click Default Web Site and double-click SSL Settings in features view.
![iis manager](https://xpertstec.com/wp-content/uploads/2019/09/iis-manager-ssl.jpg)
2- Uncheck the Require SSL and click Apply button under the action menu.
![iis manager ssl settings URL Redirection Exchange 2013](https://xpertstec.com/wp-content/uploads/2019/09/iis-manager-ssl-settings.jpg)
3- In the IIS manager > click Exchange Back End and double-click SSL Settings in features view.
![iis manager ssl](https://xpertstec.com/wp-content/uploads/2019/09/iis-manager-ssl-1.jpg)
4- Uncheck the Require SSL and click Apply button under the action menu.
![iis manager ssl settings URL Redirection Exchange 2013](https://xpertstec.com/wp-content/uploads/2019/09/iis-manager-ssl-settings-1.jpg)
Redirect Default Web Site to OWA
Now we are redirecting http://mail.xpertstec.com to https://mail.xpertstec.com/owa. We have already configured HTTP to HTTPS redirection. Now we need to configure redirection for requests that come into Default Web Site to OWA virtual directory.
5- In the IIS manager,> select Default Web Site > Double-click HTTP Redirect feature in features view.
![iis manager URL Redirection Exchange 2013](https://xpertstec.com/wp-content/uploads/2019/09/iis-manager-1.jpg)
6- Select the option Redirect requests to this destination > Type full path of the URL https://mail.xpertstec.com/owa. In the Redirect Behavior option > check the option – Only redirect requests to content in this directory (not subdirectories) > Under status code > choose Found (302) and then click Apply to save the settings.
![iis manager http redirect URL Redirection Exchange 2013](https://xpertstec.com/wp-content/uploads/2019/09/iis-manager-http-redirect.jpg)
Exchange Back End
7- Repeat the same steps for Exchange Back End.
In the IIS manager > select Exchange Back End > Double click HTTP Redirect feature in features view.
![iis manager](https://xpertstec.com/wp-content/uploads/2019/09/iis-manager-2.jpg)
8- Select the option Redirect requests to this destination > Type full path of the URL https://mail.xpertstec.com/owa. In the Redirect Behavior option > check the option – Only redirect requests to content in this directory (not subdirectories) > under status code > choose Found (302) and then click Apply to save the settings.
![iis manager http redirect URL Redirection Exchange 2013](https://xpertstec.com/wp-content/uploads/2019/09/iis-manager-http-redirect-1.jpg)
9- Now remove the HTTP redirect option from subfolders of both Default Web Sites and Exchange Back End. We only want the default web URL mail.xpertstec.com to be redirected to https://mail.xpertstec.com/owa. So uncheck the HTTP Redirect option from all the subdirectories (ecp, ews, mapi, oab, owa, PowerShell and etc) of the Default Web Sites and then click Apply.
![iis manager http redirect action](https://xpertstec.com/wp-content/uploads/2019/09/iis-manager-http-redirect-action-1.jpg)
10- Now uncheck the HTTP Redirect option from all the subdirectories (ecp, ews, mapi, oab, owa, PowerShell and etc) of the Exchange Back End and then click Apply.
![iis manager http redirect action](https://xpertstec.com/wp-content/uploads/2019/09/iis-manager-http-redirect-action-2.jpg)
Configure ECP Sub Folder
We need to allow SSL connection to this virtual directory so the SSL option must be configured first. This means that you must type https://xpertstec.com/ecp in the browser to login to the EAC console.
11- Under default web site > select ecp virtual directory > then double click SSL Settings from the features pane.
![iis manager ssl settings](https://xpertstec.com/wp-content/uploads/2019/09/iis-manager-ssl-settings-2.jpg)
12- Select the Require SSL option and then click Apply to save the settings.
![iis manager required ssl](https://xpertstec.com/wp-content/uploads/2019/09/iis-manager-required-ssl.jpg)
13- Under Exchange Back End > select ecp virtual directory > then double click SSL Settings from the features view.
![iis manager ssl settings](https://xpertstec.com/wp-content/uploads/2019/09/iis-manager-ssl-settings-3.jpg)
14- Select Require SSL option > then click Apply to save the settings.
Now you can use https://mail.xpertstec.com/ecp URL to successfully log into the EAC console.
![iis manager required ssl](https://xpertstec.com/wp-content/uploads/2019/09/iis-manager-required-ssl-1.jpg)
15- Now restart the IIS server by typing iisreset /noforce on the command prompt. You can now access the OWA by typing the URL, mail.xpertstec.com in the browser which will redirect you to https://mail.xpertstec.com/owa.
![iisreset noforce command](https://xpertstec.com/wp-content/uploads/2019/09/iisreset-noforce-1.jpg)
For more details click here