Skip to content

Instantly share code, notes, and snippets.

@imageaid
Created September 19, 2011 19:27
Show Gist options
  • Save imageaid/1227335 to your computer and use it in GitHub Desktop.
Save imageaid/1227335 to your computer and use it in GitHub Desktop.
Sample URLRewriteFilter XML Config for CHWheels
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE urlrewrite PUBLIC "-//tuckey.org//DTD UrlRewrite 2.6//EN" "http://tuckey.org/res/dtds/urlrewrite2.6.dtd">
<urlrewrite>
<rule match-type="regex">
<!-- folder conditions -->
<condition type="request-uri" operator="notequal" next="and">/flex2gateway/*</condition>
<condition type="request-uri" operator="notequal" next="and">/jrunscripts/*</condition>
<condition type="request-uri" operator="notequal" next="and">/cfide/*</condition>
<condition type="request-uri" operator="notequal" next="and">/files/*</condition>
<condition type="request-uri" operator="notequal" next="and">/flash/*</condition>
<condition type="request-uri" operator="notequal" next="and">/images/*</condition>
<condition type="request-uri" operator="notequal" next="and">/javascripts/*</condition>
<condition type="request-uri" operator="notequal" next="and">/miscellaneous/*</condition>
<condition type="request-uri" operator="notequal" next="and">/stylesheets/*</condition>
<condition type="request-uri" operator="notequal" next="and">/railo-context/*</condition>
<!-- file conditions -->
<condition type="request-uri" operator="notequal" next="and">/robots.txt</condition>
<condition type="request-uri" operator="notequal" next="and">/sitemap.xml</condition>
<condition type="request-uri" operator="notequal" next="and">/404.shtml</condition>
<condition type="request-uri" operator="notequal" next="and">/favicon.ico</condition>
<from>^(.*)$</from>
<to last="true">/rewrite.cfm?\$pathinfo=$1&amp;%{query-string}</to>
</rule>
</urlrewrite>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment