RESTful urls in ColdFusion 11

147 Views Asked by At

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.

1

There are 1 best solutions below

0
On

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 the htaccess and ISAPIrewrite4.ini. Then restarted 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 :)