Hello,
I am hoping someone can help me because I had some issues making this happen on my own and tried using tips from previous posts in forums online but it never worked for me..
I am trying to redirect a site on IIS to a subdomain hosted elsewhere:
"www.mysite.com" to "web.mysite.com"
but I only want the main page so anything after .com such as "www.mysite.com/index.aspx" or "www.mysite.com/Dashboard/Dashboard.aspx" should remain on IIS.
I currently have a rewrite active for http->https shown below:
<rewrite><rules><rule name="HTTP2HTTPS" stopProcessing="true"><match url="(.*)" /><conditions><add input="{HTTPS}" pattern="^OFF$" /></conditions><action type="Redirect" url="https://{HTTP_HOST}/{R:1}" /></rule></rules></rewrite>
Can anyone help me achieve my goal? Much appreciated