I just moved my CFWheels app from CF9 to CF11 and I've lost the REST urls from my previous setup.
For example before I had example.com/controller/view
and now I get example.com/index.cfm?controller=foo&action=bar
The weird thing is that when I hardcode the url in it doesn't convert it or throw an error.
Is there a setting in the administrator's panel that I should check? I did a comparison with my previous setup but I have't found anything.
This is what I did to get it to work.
I uncomented the xml code inside web.config in the root of my application. Set the
<directoryBrowse enabled="true" />
renamed thehtaccess
andISAPIrewrite4.ini
. Thenrestarted the server and Coldfusion
through services.I think the trick happened when I renamed the two files that were unnecessary for my setup (htaccess for apache and ISAPI rewrite for IIS 6).
Good luck to anyone running through this issue :)