I have added the urlrewrite.xml and web.xml on .CommandBox\server\WEB-INF but it seems not work if I try to reach the url localhost:myportnumer/rewrite-status.
Some expert could share his configuration to enable url rewriting?
By the way, since I’m only concerned about friendly URLs in production, I detect the environment in Routes.cfm and appropriately remove “/index.cfm” only for production and in development(which uses embedded server) I leave in “/index.cfm”.
// environment settings, create a detectEnvironment() method to detect it yourself.
// create a function with the name of the environment so it can be executed if that environment is detected
// the value of the environment is a list of regex patterns to match the cgi.http_host.
environments = {
development = “^127.0.0.1”,
test = “^test.psomas.com”,
production = “^www.psomas.com”
};
…
function development(){
settings.sesIndex = “/index.cfm”;
}