-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
urlrewrite.xml
35 lines (33 loc) · 1.42 KB
/
urlrewrite.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE urlrewrite
PUBLIC "-//tuckey.org//DTD UrlRewrite 4.0//EN"
"http://www.tuckey.org/res/dtds/urlrewrite4.0.dtd">
<!--
This file is intended for use with Tuckey UrlRewriteFilter (http://tuckey.org/urlrewrite/) for Tomcat Servlet Containers
Tuckey is used by commandbox (https://www.ortussolutions.com/products/commandbox) which can greatly speed your local development.
In order to use this file with commandbox, we recommend creating a server.json file in your webroot with this starter markup:
{
"name":"myWebApp",
"force":true,
"web":{
"http":{
"host":"localhost",
"port":60001
},
"rewrites":{
"enable":true,
"config":"urlrewrite.xml"
}
}
}
See more at http://docs.cfwheels.org/docs/commandbox and https://ortus.gitbooks.io/commandbox-documentation/content/embedded_server/serverjson.html
If you do not use Tuckey or Commandbox, this file can be safely deleted.
-->
<urlrewrite>
<rule enabled="true">
<name>CFWheels pretty URLs</name>
<condition type="request-uri" operator="notequal">^/(flex2gateway|jrunscripts|cfide|cf_scripts|cfformgateway|cffileservlet|lucee|files|images|javascripts|miscellaneous|stylesheets|wheels/public/assets|robots.txt|favicon.ico|sitemap.xml|rewrite.cfm)</condition>
<from>^/(.*)$</from>
<to type="passthrough">/rewrite.cfm/$1</to>
</rule>
</urlrewrite>