Quantcast
Channel: All Forums
Viewing all articles
Browse latest Browse all 27852

Rewrite rule to Ignore any ports in the URL

$
0
0

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.

 


Viewing all articles
Browse latest Browse all 27852

Trending Articles



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