Tuesday, July 10, 2012

CFWheels 1.1.8 Url Rewriting

CFWheels 1.1.8, IIS 7.5 on Win 7x64, Apache Tomcat running Railo 3.3

It seems url rewriting has been a tough nut to crack... and of course, now that I've figured it out... not so much :-)

- Add rewrite module to IIS 7.5 (Reboot your server.. I couldn't get the Rewrite module to show in the IIS control panel.)
- Enable rewriting by un-commenting out lines in your web.config that comes with cfwheels (This makes the rule appear in the IIS rewrite panel as a rule btw)

-  Review guide about rewrite configuration in IIS Console directly (nice for testing & understanding what's going on)
- Enable logging for starters (helpful) Hunt around in here for the log: C:\inetpub\logs\LogFiles\
- In tomcat's \tomcat\conf\web.xml 

Around line 429 "<!-- The mapping for the Railo servlet -->"   make sure this is NOT commented out:

<servlet-mapping>
    <servlet-name>GlobalCFMLServlet</servlet-name>
    <url-pattern>/rewrite.cfm/*</url-pattern>
</servlet-mapping>

No comments: