[CB 4.1.0] Routing not working

I can’t seem to get routing working. This is my Routes.cfm:

setUniqueURLS(false);

if (len(getSetting(‘AppMapping’) ) lte 1) {
setBaseURL(“http://#cgi.HTTP_HOST#/index.cfm”);
} else {
setBaseURL(“http://#cgi.HTTP_HOST#/#getSetting(‘AppMapping’)#/index.cfm”);
}

addRoute("/healthcheck",function(event,rc,prc){
return “Ok!”;
});
addRoute(":handler/:action?");

But when I try to access healthcheck: http://localhost/app/healthcheck, I just get redirected to http://localhost/app/index.cfm

ColdBox 4 did not support this type of routing.

Thanks for the reply Luis. The problem is I’m also unable to get the simplest routing (":handler/:action?") working. If I try http://localhost/app/handler/action I just get an infinite redirect loop to http://localhost/app/handler/index.cfm

I think I must be missing some basic config in my app. Is there a simple CB template with simple routing for v4? If I use “coldbox create app skeleton…” none of the templates has a v4 version.

You might want to check your Rewrite Rules.
https://coldbox.ortusbooks.com/the-basics/routing/requirements/rewrite-rules

Yes, this is my web.config, exactly the same as the example:

<?xml version="1.0" encoding="UTF-8"?>

In /config/ColdBox.cfc, make sure to include SES interceptor.

interceptors = [ { class=“coldbox.system.interceptors.SES” } ];

Thanks, yeah that’s what I eventually found.