Previous Next

Thread: Determining if Rewriter is running

Last post 08-11-2008 1:02 PM by DanielVL. 1 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (2 items)

Sort Posts:

  • 08-11-2008, 6:54 AM

    Determining if Rewriter is running

    In order for some features on our website to work correctly with the URL rewriter, we have to change the target URL for some POST requests which will be coming from other sites.  While we send out the correct URL to POST to, we need to be able to programmatically test to see if the URL rewriter is running, and change the URL accordingly.  How can one determine in code, whether or not the rewriter is running?

  • 08-11-2008, 1:02 PM In reply to

    • DanielVL
    • Top 50 Contributor
    • Joined on 10-07-2006, 2:00 PM
    • Redmond, WA, USA
    • Posts 74

    Re: Determining if Rewriter is running

    You could query the x-original-url header (aka HTTP_X_ORIGINAL_URL server variable). If it is set, means that the current request is using the rewritten URL.

    Daniel Vasquez Lopez
    IIS Team
Page 1 of 1 (2 items)
Page view counter