DEV Community


How do I embed javascript into an IIS UrlRewrite rule?

bugmagnet profile image Bruce Axtens ・1 min read

Context: Azure, Windows Server 2012 R2, IIS 8

The standard rewrite providers in IIS 8 are { and '}' and these are used in various contexts to represent captures, replacements and symbols, e.g. {C:0}, {R:1}, {HTTP_ORIGIN}.

I'm trying to use a rule to inject Google Tag Manager…


Editor guide