forked from PAWECOGmbH/saaster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rewrite.xml
23 lines (22 loc) · 1.26 KB
/
rewrite.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?xml version="1.0" encoding="utf-8"?>
<urlrewrite>
<rule>
<name>Rewrite API</name>
<from>^/api/(.+)$</from>
<condition type="request-filename" operator="notdir"/>
<condition type="request-filename" operator="notfile"/>
<to type="passthrough" qsappend="true" >/api/index.cfm/$1</to>
</rule>
<rule>
<name>Rewrite Main</name>
<from>^/(.+)$</from>
<condition type="request-uri" operator="notequal">/lucee/admin/server.cfm</condition>
<condition type="request-uri" operator="notequal">/lucee/admin/web.cfm</condition>
<condition type="request-uri" operator="notequal">/api/</condition>
<condition type="request-uri" operator="notequal">/(index.cfm|robots.txt|osd.xml|flex2gateway|cfide|cfformgateway|railo-context|lucee|admin-context|modules/contentbox-dsncreator|modules/contentbox-installer|modules/contentbox|files|images|js|javascripts|css|styles|config).*</condition>
<condition type="request-uri" operator="notequal">\.(bmp|gif|jpe?g|png|css|js|txt|xls|ico|swf|woff|ttf|otf)$</condition>
<condition type="request-filename" operator="notdir"/>
<condition type="request-filename" operator="notfile"/>
<to type="passthrough" qsappend="true" >/index.cfm/$1</to>
</rule>
</urlrewrite>