How to enable URL Rewriting on local machine, with CF 10 Developer Edition.

217 views
Skip to first unread message

Amir

unread,
Jan 1, 2013, 5:20:36 PM1/1/13
to cfwh...@googlegroups.com
I have the developer edition of CF on my local Windows 7 machine installed, and I can't get URL Rewriting to turn on. I've uncommented all that needed to be done, and then uploaded all those files to my live server, and there, URL rewiring works. However, it's not working on my local machine. This makes it hard to code and test out routes etc on how they would work/look on my live version of the site.

Are there some additional files that I need to edit or download to my local machine to get this to work?

Thanks for the help.


Chris Geirman

unread,
Jan 1, 2013, 5:23:10 PM1/1/13
to ColdFusion on Wheels
Are you using IIS in your local environment? If so, did you install the rewrite module?





--
You received this message because you are subscribed to the Google Groups "ColdFusion on Wheels" group.
To view this discussion on the web visit https://groups.google.com/d/msg/cfwheels/-/jp4fTm4qgowJ.
To post to this group, send email to cfwh...@googlegroups.com.
To unsubscribe from this group, send email to cfwheels+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cfwheels?hl=en.

Amir Karamuja

unread,
Jan 1, 2013, 5:45:48 PM1/1/13
to cfwh...@googlegroups.com

I did install that. But still nothing. Is there some setting I need to enable or something? Also how do I test to make sure IIS is working properly?

marc

unread,
Jan 1, 2013, 6:45:58 PM1/1/13
to cfwh...@googlegroups.com
Dit you restart the IIS webserver and your CF10 instance?
Also <cfset set(UrlRewriting="on")>

Btw I also added the IIS 7.5 UrlRewrite plugin and uncommented the relevant section in the web.config file but it was not working here. I got pretty urls using the LinkTo() function but they link to the same page.

Amir

unread,
Jan 1, 2013, 8:22:19 PM1/1/13
to cfwh...@googlegroups.com
Yep I restarted my whole computer and still nothing.

Also where did you add: <cfset set(UrlRewriting="on")> ? app.cfm? When I add it there, I get "ColdFusion Error :Variable SET is undefined. "

Seems like we're both having the same problem getting this working on the local machine?

marc

unread,
Jan 2, 2013, 2:56:30 AM1/2/13
to cfwh...@googlegroups.com
here and here.

Couldn't find an exhaustive list of all configuratin settings - I guess you'll have to dive into the CFWheels framework itself to get an overview of those.

Andy Bellenie

unread,
Jan 2, 2013, 8:58:02 AM1/2/13
to cfwh...@googlegroups.com
 <cfset set(UrlRewriting="on")>

is found in /config/settings.cfm

--
You received this message because you are subscribed to the Google Groups "ColdFusion on Wheels" group.
To view this discussion on the web visit https://groups.google.com/d/msg/cfwheels/-/z7FLuUf5NhoJ.

Rufhausen

unread,
Jan 4, 2013, 1:02:40 PM1/4/13
to cfwh...@googlegroups.com
I suspect you are experiencing the issue outlined here: https://groups.google.com/d/topic/cfwheels/MNHrcPciWZs/discussion

I've had to patch the wheels core files with the fix outlined in that thread in order to get Wheels to work with CF10/IIS, while using a different, unpatched version in my local CF10/OS X/Apache setup since the "fix" breaks rewriting in that setup. It's a pain and I wish someone smarter than me would release a patch to CFWheels that works in all environments.

Amir

unread,
Jan 4, 2013, 1:15:22 PM1/4/13
to cfwh...@googlegroups.com
Yea, for me it's the opposite, the live sever CF10/IIS works fine, but my local version does not.
Reply all
Reply to author
Forward
0 new messages