Quantcast
Channel: URL Rewrite Module
Viewing all articles
Browse latest Browse all 2482

Rewrite only main page

$
0
0

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.. frown

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


Viewing all articles
Browse latest Browse all 2482

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>