How do I handle missing page requests? /home (dire...
# lucee
d
How do I handle missing page requests? /home (directory does not exist) ----> I get
<html><head><title>Error</title></head><body>Not Found</body></html>
commandbox/undertow? /home/default.cfm (page does not exist) -----> Application.cfc/onMissingTemplate() handles this request. For the longest time, I never cared about this users hitting a non-existing directory. On my IIS/ACF hosted sites users will get an iis 404 error page. Its time I clean this up and render a nice looking page for them. How do I configure lucee or my application to handler those requests that I believe are currently being handled by commandbox/undertow?
c
Can you add a rewrite rule to CommandBox to change
/home
to
/home/default.cfm
?
d
Yeah I can. I can't think right now. Isn't default.cfm the default page for a folder. so shouldn't it be processed by lucee?
c
I think it's
index.cfm
.