url-rewritingiis-7.5

rewrite url to url:port number


How can I rewrite the next url request:

http://example.com/virtualDirectory/default.aspx?param1=2&param2=car

to:

http://example.com:8888/virtualDirectory/default.aspx?param1=2&param2=car

Solution

  • You should install the URL Rewrite and the ARR (Application Request Routing) modules for IIS. Here are two links on how these can work together to create a reverse proxy to do what you want: