I have a situation wherein , in my application I get requests that include a port number. This port is Not the default port. What I want to do is use the URL Rewrite capability in IIS to rewrite the URL such that the URL has no port number in it (so effectively it goes to port 80). I need to support both HTTP and HTTPS
So what would the rule and regex be for this?
Examples:
http://www.mysite.com:8080/customers/orders/1
should change to
http://www.mysite.com/customers/orders/1
For HTTPS besides the scheme being HTTPS the above example applies as well.