Skip to content

Instantly share code, notes, and snippets.

@christierney402
Created May 5, 2016 21:51

Revisions

  1. christierney402 created this gist May 5, 2016.
    17 changes: 17 additions & 0 deletions web.config
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,17 @@
    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
    <system.webServer>
    <rewrite>
    <rules>
    <rule name="api" stopProcessing="true">
    <match url="^API/(.+.*)$" ignoreCase="true" />
    <conditions>
    <add input="{PATH_INFO}" pattern="^.*/index.cfm.*$" negate="true" />
    </conditions>
    <action type="Rewrite" url="API/index.cfm?endpoint=/{R:1}" appendQueryString="true" logRewrittenUrl="true" />
    </rule>
    </rules>
    </rewrite>
    <httpErrors existingResponse="PassThrough" />
    </system.webServer>
    </configuration>