Fusebox 5.5 and SES URLs
I’ve been using Fusebox 5.5 since it was released but have been a bit slow to check out the SES handling (I have been using my own URL parsing in Application.cfm and an ASAPI plugin). This didn’t work with the XML-free version on Fusebox 5.5. After much head scratching I worked out why.
First this is what the official Fusebox 5.5 release notes say:
Fusebox 5.1 did not process these URLs coming into the framework so you needed to add your own home-brewed SES URL parser. Fusebox 5.5 will attempt to parse SES URLs coming into the framework if the queryStringStart parameter is set to something other than the default “?”) in fusebox.xml or FUSEBOX_PARAMETERS.
All you need to do is add these lines into the pseudo constructor of your Application.cfc and job done!
// search engine safe parameters... FUSEBOX_PARAMETERS.queryStringStart ="/"; // default: ? FUSEBOX_PARAMETERS.queryStringSeparator ="/"; // default: & FUSEBOX_PARAMETERS.queryStringEqual = "/"; // default: =
Don’t forget to reinitialise the application to make it work!
In my case I also had to use a different script name to the usual index.cfm to stop Fusebox’s URL handling conflicting with my server wide ASAPI plugin URL handling.