IIS URL Rewrite (2/4)
It is possible to take advantage of the IIS Tracing feature to get a trace from the URL Rewrite module. If you are not familiar with the IIS Tracing feature please read our IIS Tracing tutorial.
|If you have installed the URL Rewrite Module before the Tracing feature, the option to enable tracing for the URL rewrite module may not be available. You can fix this by navigating to "Uninstall or change a program" in the "Programs and Features" section of the Control Panel and then do a repair on the "IIS URL Rewrite Module 2" program.|
With the URL Rewrite module installed a new option should be present in the "Select Trace Provider" dialog during the tracing rule creation or modification operations as shown in Figure 1. The option is simply called "Rewrite".
|Figure 1: Select Trace Providers dialog|
For this example we assume that a tracing rule has been put in place that triggers for successful requests i.e. requests where the status code is 200. The steps to set up such a rule are explained in the IIS Tracing tutorial. In addition to the steps mentioned on that page we make sure tracing is enabled for the URL Rewrite module as we explained in the previous section.
On the previous page we showed how to redirect
If we re-run that example with the tracing rule in place we get the trace output shown in Figure 2.
|Figure 2: HTTP Redirection trace output|
Lines 14 to 23 are the traces related to the URL Rewrite module.
|Figure 3: TODO trace output|
blog comments powered by Disqus