Log Location Url Responses of 301 redirects from IIS
- by James Lawruk
Is there a way to log 301 redirects returned by IIS with the (1) request Url and the (2) location Url of the response?
Something like this:
Url, Location
/about-us, /about
/old-page, /new-page
The IIS logs contain the Request Url and the status code (301), but not the location Url of the response. Ideally there would be an additional field in the IIS Log called Location that would be populated when IIS responded with a 301.
In my case the source of the redirect could be ISAPI Rewrite Rules, ASP.NET applications, Cold Fusion applications, or IIS itself. Perhaps there is a way to log IIS response data? Thanks for your help.