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?