I have not created a customRewrites.xml yet. I intend to add it to my project folder similar to .htaccess (does not work).
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE urlrewrite PUBLIC "-//tuckey.org//DTD UrlRewrite 4.0//EN" "http://tuckey.org/res/dtds/urlrewrite4.0.dtd">
<!-- this will redirect the user from /foo to /index.cfm -->
<!-- internally redirect the requested URL from /gallery to /index.cfm?page=gallery with query string appended -->
<to type="passthrough" qsappend="true">/index.cfm?page=gallery</to>
And afterwards use this commandbox (hopefully not to have got any problem)
start --rewritesEnable rewritesConfig=customRewrites.xml
At this moment i have not had access to this specific project as i work away from home due to some unexpected reasons. I will be able to reply you wth more specific remarks from tomorrow.
If it works, you could post your reply to Stackoverflow and give you definitely full credit. I had had another issue with Lucee here.
Thanks a lot for your interest!