Logging of Rewritten URLs into IIS logs

sco gordo 301 Reputation points
2021-06-29T19:50:07.57+00:00

Hi, using URL Rewrite module in IIS, redirecting legacy URLs (https://contosoOLD) to new URLs (https://contosoNEW). I've been asked to provide a report of rewrite events. In other words, I need to provide information on attempts to hit the site using the https://contosoOLD url. Can be written either to regular IIS logs or another location, and how so?

Thanks!

Windows development | Internet Information Services
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sam Wu-MSFT 7,561 Reputation points Microsoft External Staff
    2021-06-30T03:01:10.93+00:00

    Hi @sco gordo

    You can use failed request tracking to view rewrite events: Using Failed Request Tracing to Trace Rewrite Rules.


    If the answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.