URL Rewrite for subfolders in IIS7

We have a bunch of different products served from a single root domain under different subfolders.

http://example.org/app1
http://example.org/app2
http://example.org/app3
...

We’ll like to specify rewrite rules to transform:

http://example.org/app1/test/form

to:

http://example.org/app1/index.cfm?event=test.form

I know that it’s possible to achieve this by adding the following to the root’s web.config:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <rewrite>
          <rules>
            <rule name="Rewrite to index.cfm">
              <match url="app1/([a-z0-9]+)/([a-z0-9]+)" />
              <action type="Rewrite" url="app1/index.cfm?event={R:1}.{R:2}" />
            </rule>
          </rules>
        </rewrite>
    </system.webServer>
</configuration>

What I want to know is if it’s possible to achieve this by only modifying app1’s web.config, i.e. without touching the root’s web.config?

Firstly, you need to be using the SES interceptor in ColdBox which means you’d rewrite the URL

http://example.org/app1/test/form
to:
http://example.org/app1/index.cfm/test/form

I don’t see why you shouldn’t be able to handle this at the app level. Have you been through our docs?
http://wiki.coldbox.org/wiki/URLMappings.cfm#IIS7_web.config

Thanks!

~Brad

ColdBox/CommandBox Developer Advocate
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com