Skip to content

Instantly share code, notes, and snippets.

@stdavis
Created July 28, 2017 15:34
Show Gist options
  • Select an option

  • Save stdavis/bee1bd233f87bbbf18a4a32185724f7c to your computer and use it in GitHub Desktop.

Select an option

Save stdavis/bee1bd233f87bbbf18a4a32185724f7c to your computer and use it in GitHub Desktop.
PrintProxy for Discover Quad Words via IIS URL Rewrite
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="PrintProxy" stopProcessing="true">
<match url=".*Export Web Map Task\/execute" />
<action type="Redirect" url="{R:0}?{C:1}your-open-quad-word{C:2}" appendQueryString="false" redirectType="Found" />
<conditions trackAllCaptures="true">
<add input="{QUERY_STRING}" pattern="(.*discover\.agrc\.utah\.gov%2Flogin%2Fpath%2F)(?!your-open-quad-word).*?(%2Ftiles.*)" />
</conditions>
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment