Skip to content

Instantly share code, notes, and snippets.

@christierney402
Created May 5, 2016 21:51
Show Gist options
  • Save christierney402/97bb48acad55a66590553ced4347e307 to your computer and use it in GitHub Desktop.
Save christierney402/97bb48acad55a66590553ced4347e307 to your computer and use it in GitHub Desktop.
Taffy REST Framework IIS Rewrite Rule
<?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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment