-
-
Notifications
You must be signed in to change notification settings - Fork 106
Closed
Labels
Milestone
Description
I propose we add urlrewrite.xml to the root of the directory alongside htaccess etc to support tuckey:
<?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">
<urlrewrite>
<rule enabled="true">
<name>CFWheels pretty URLs</name>
<condition type="request-uri" operator="notequal">^/(flex2gateway|jrunscripts|cfide|cfformgateway|cffileservlet|lucee|files|images|javascripts|miscellaneous|stylesheets|robots.txt|favicon.ico|sitemap.xml|rewrite.cfm|index.cfm)</condition>
<from>^/(.*)$</from>
<to type="passthrough">/index.cfm/$1</to>
</rule>
</urlrewrite>
This means it's trivial to get commandbox running a site with full urlrewriting out of the box by using server.json, i.e:
{
"name":"mywheelssite",
"force":true,
"web":{
"http":{
"host":"localhost",
"port":60006
},
"rewrites":{
"enable":true,
"config":"urlrewrite.xml"
}
}
}
Thoughts? I'd like to get it working with rewrite.cfm rather than index.cfm too.
Reactions are currently unavailable