Log Location Url Responses of 301 redirects from IIS
Posted
by
James Lawruk
on Server Fault
See other posts from Server Fault
or by James Lawruk
Published on 2012-09-04T17:45:09Z
Indexed on
2012/09/05
3:40 UTC
Read the original article
Hit count: 636
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.
© Server Fault or respective owner