• Sign In
  • Join

Microsoft
  • IIS
  • Home
  • Manage
  • Downloads
  • Learn
  • Reference
  • Solutions
    • Technologies
    • .NET Framework
    • ASP.NET
    • PHP
    • Windows Server
    • SQL Server
    • Web App Gallery
    • Microsoft Azure
    • Tools
    • Visual Studio
    • Visual Studio Code
    • Web Platform Installer
    • Get Help:
    • Ask a Question in our Forums
    • More Help Resources
  • Blogs
  • Forums

Home IIS.NET Forums IIS 7 and Above URL Rewrite Module Accessing Application Relative URI in Rewrite Maps Re: Accessing Application Relative URI in Rewrite Maps

View Complete Thread

Shortcuts

  • Active Threads
  • Unanswered Threads
  • Unresolved Threads
  • Advanced Search
    • Reply
    lonevvolf lonevvolf

    55 Posts

    Re: Accessing Application Relative URI in Rewrite Maps

    Apr 06, 2009 11:57 AM|lonevvolf|LINK

    Just answered my own question.  I just changed the match rule to look like this:

    <rule name="Rewrite Map" stopProcessing="false">

    <match url="^(.*)" />

    <conditions>

    <add input="{SearchMachineMap:{R:1}}" pattern="(.+)" />

    </conditions>

    <action type="Rewrite" url="{C:1}" appendQueryString="false" />

    </rule>

  • This site is managed for Microsoft by Neudesic, LLC. | © 2019 Microsoft. All rights reserved.
  • Privacy Statement
  • Terms of Use
  • Contact Us
  • Advertise with Us
  • Hosted on Microsoft Azure
  • Follow us on:
  • Twitter
  • Facebook
  • Microsoft
  • Feedback on IIS