eniac00
10/18/2024, 6:28 PMapplication.cfc . The problem is when a invalid directory or URL is received lucee directly throwing 404 page. I just want to get the requested URL and bypass this 404 error. Can anyone here help me with by telling me how should I proceed?denny
10/18/2024, 6:40 PMdenny
10/18/2024, 6:43 PMonRequestStart? https://helpx.adobe.com/coldfusion/developing-applications/developing-cfml-applicati[…]-the-application-and-its-event-handlers-in-application-c.htmleniac00
10/18/2024, 6:44 PMColdBox have solved the problem but did not actually got it as I am very new to CF. Also, I have found onMissingTemplate() that will only let you know if any *.cfm file is not found but no luck with the URL.eniac00
10/18/2024, 6:46 PMonRequestStart() receives only the valid URLs and can be fetched using CGI but the invalid URLs or the non-existent directory is directly giving error and not reaching onRequestStart() method.denny
10/18/2024, 6:49 PMonRequestStart is called regardless of if the template exists or notdenny
10/18/2024, 6:50 PMdenny
10/18/2024, 6:50 PMeniac00
10/18/2024, 6:57 PMURL and not with the template *.cfm. For example, if I have a URL like localhost:8888/hello note that this directory doesn't exist and if I run the server and try to visit the URL, the onRequest() will not dump anything and will somehow redirected to the 404 page. No way I am able to grab the URL because of that.denny
10/18/2024, 8:38 PMdenny
10/18/2024, 8:39 PMeniac00
10/19/2024, 4:54 AMURL Rewrite taking help from here https://stackoverflow.com/questions/61541516/how-to-implement-urlrewrite-in-lucee .
But no luck so far and I am not sure how to redirect all the request to Application.cfc . Do you have any idea?eniac00
10/19/2024, 8:11 AM