'IIS Rewrite - Redirect Rule and Add Response Header together

In IIS, I have a set of redirect rules using IIS Rewrite module. In that, I would like to redirect an URL as well as add custom header to the response. I have setup redirect rule and an outbound rule to set the headers. It seems that when a redirect is initiated by the rule, then outbound rules are not executed. Is there a way to do both?



Solution 1:[1]

firstly, javascript and java are totally different secondly, you cant 'automate' code translation

you can use http://pyjs.org/ (pyjs) and try python to js compiler (idk if it works)

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Vishu