Mauro caresimo
06/07/2023, 12:59 PMdavla
06/07/2023, 1:04 PMMauro caresimo
06/07/2023, 1:05 PMdavla
06/07/2023, 1:07 PMdavla
06/07/2023, 1:09 PMMauro caresimo
06/07/2023, 1:10 PMMauro caresimo
06/07/2023, 1:10 PMdavla
06/07/2023, 1:12 PMMauro caresimo
06/07/2023, 1:34 PMdavla
06/07/2023, 1:36 PMMauro caresimo
06/07/2023, 2:08 PMbdw429s
06/07/2023, 3:07 PMI have tried commandbox once before but it gets a little sticky with redirects I found@Mauro caresimo To be clear, CommandBox has no redirect behaviors at all. If you had issues with something redirecting, it would have been your own application code.
bdw429s
06/07/2023, 3:09 PMdavla
06/07/2023, 3:13 PMMauro caresimo
06/07/2023, 3:17 PMbdw429s
06/07/2023, 3:18 PMMauro caresimo
06/07/2023, 3:19 PMMauro caresimo
06/07/2023, 3:19 PMMauro caresimo
06/07/2023, 3:20 PMMauro caresimo
06/07/2023, 3:21 PMdavla
06/07/2023, 3:22 PMMauro caresimo
06/07/2023, 3:23 PMMauro caresimo
06/07/2023, 3:23 PMbdw429s
06/07/2023, 3:26 PM.htaccess with CommandBox. That is a feature of the Tuckey Rewrites which works so-so and isn't documented much (Outside, of just saying "everything should work" ๐). Sadly, the Tuckey library has dried up as a Java open source project. The maintainer hasn't released a version in years and has stopped working on it. As such, I've been recommending people use Server Rules, which is powered by JBoss Undertow's Predicate Language and extremely extensible.
Now is a great time to start looking at server rules-- the next version of CommandBox which will have Multi-Site built in (a full-fledged web server allowing for all web settings in the server.json to be configured individually for each site, unlimited HTTP/SSL/AJP listeners, unlimited hostname bindings, unlimited SSL certs via SNI, etc. As part of this, the Tuckey rewrites, which are inextricable from the servlet and therefore limited, are going to be deprecated (and disabled by default). I've already been enhancing the server rules, adding proper is-file and is-directory checks and I just added a rewrite map feature like what Apache has.
It would be an interesting project to add a translation layer to read a htaccess file and create the corresponding server rules for it, but it would likely have the same little issues that the Tuckey one has unless somone was willing to work enough to get everything working correctly.Mauro caresimo
06/07/2023, 3:27 PMbdw429s
06/07/2023, 3:28 PMMauro caresimo
06/07/2023, 3:29 PMdavla
06/07/2023, 3:30 PM