Jim Priest
01/25/2025, 12:25 AMif (!application.Initialized) {
location(url="/admin/main/initialize", addToken=false);
}
Which works fine in ACF, but I'm getting an error in Lucee:
Message The requested resource [/admin/index.cfm/main/initialize] is not available
Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.
We currently have a redirect in .htaccess for FW/1 links which seems to be the culprit but I don't know why:
# FrameworkOne rewrites to remove index.cfm
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^.*\.(bmp|css|gif|htc|html?|ico|jpe?g|js|pdf|png|swf|txt|xml)$
RewriteRule ^(.*)$ /admin/index.cfm/$1 [NS]
If I comment out the redirect I get an Apache 404...
This seems like I need to tweak something in server or web.xml but I'm not sure what... it's been a long time since I last used LuceeReuben Brown
01/25/2025, 12:48 AMlmajano
01/25/2025, 1:21 PMJim Priest
01/25/2025, 2:35 PMJim Priest
01/25/2025, 3:32 PM<url-pattern>/admin/index.cfm/*</url-pattern>Matt Jones
01/27/2025, 3:36 PMRewriteRule ^/admin(/.*)?$ /admin/index.cfm$1 [NS]