I'm trying to set a webapp in iis 7 to forward requests to a specific port to a controller inside the website. I need that every request sent to http://server:6035/{QUERY} will be rerouted to http://server:6035/controller/{QUERY}.

If there is no query, it should just be rerouted to http://server:6035/controller. All other ports in that website should work as usual. I tried doing that with url rewrite using the condition .*:6035(?!(/search/|/search$|/uisearch/|/jsonsearch/)) and redirected it to http://{HTTP_HOST}:6035/Search/{R:0} and it just didn't work or gave me 406 result code.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.