Requirements
Routing requirements — enable full URL rewrites on Apache, nginx, IIS, or CommandBox to remove index.cfm from URLs.
Routing is enabled by default in the ColdBox application templates in order to work with URL's like this:
http://localhost/index.cfm/home/about
As you can see they still contain the index.cfm in the URL. In order to enable full URL rewrites that eliminates that index.cfm you must have a rewrite enabled webserver like Apache, nginx or IIS or a Java rewrite filter which ships with CommandBox by default.
http://localhost/home/about
CommandBox has built in rewrites powered by Tuckey and you can enable a server with rewrites by running:
server start --rewritesEnableSome Resources
Apache mod_rewrite via .htaccess or configuration files (Free)
Helicon Tech ISAPI rewrite filter for IIS (Paid)
IIS 7 native rewrite filter (Free)
nginx native web server (free)
Tuckey J2EE rewrite filter (free)
Last updated
Was this helpful?