Hi Lucee family,
The first web request on instance reboot always causes a redirect or URL param to be added to the first address resolution.
OS: Ubuntu 20.04
Lucee Version: Lucee 126.96.36.199
domain.com web request after reboot redirects to
This is causing some trouble. I can try to come up with a hotfix in htaccess to mitigate this but it’ll be messy I think.
Is there anyway to deal with this?
Lucee has no built-in functionality I’m aware of that redirects users anywhere. This means, it must be a web server rule or some CF code in your application doing the redirect. Therefore, I’m not clear what your question is since I assume the fix is for you to locate and modify the redirect that is causing you issues in your code or your server configuration.
Thanks! I’ve seen it referred to before but can’t remember where. Have searched thoroughly before posting.
From memory it relates to the Apache connector or mod_cfml.
It also seems to be referenced somewhat here:–
has anyone else noticed that the first request handled by lucee after (re)-starting it, if it’s a rewritten url, rather than showing the subsequent request, a 302 redirect is issued? every subsequent request isn’t a 302
in dev tools with preserve log on, it look like this
the 500 is just because there is a missing form parameter, I noticed this bug playing around
with a rewritten post request.
As a 302 is issued on the first request, the page url also changes, then I edited it back…