I believe CFWheels requires that you route rewrite requests through rewrite.cfm not index.cfm.
See Chris Peters comment on this
If you configure:
<rewrite> <rules> <rule name="Remove index.cfm" enabled="true"> <match url="^(.*)$" ignoreCase="true" /> <conditions logicalGrouping="MatchAll"> <add input="{SCRIPT_NAME}" negate="true" pattern="^/(assets|files|miscellaneous|robots.txt|favicon.ico|sitemap.xml|index.cfm)($|/.*$)" /> </conditions> <action type="Rewrite" url="/index.cfm/{R:1}" /> </rule> </rules> </rewrite>
in
<rewrite> <rules> <rule name="ColdFusion on Wheels URL Rewriting" enabled="true"> <match url="^(.*)$" ignoreCase="true" /> <conditions logicalGrouping="MatchAll"> <add input="{SCRIPT_NAME}" matchType="Pattern" ignoreCase="true" negate="true" pattern="^/(flex2gateway|jrunscripts|cfide|CFFileServlet|cfformgateway|railo-context|files|images|javascripts|miscellaneous|stylesheets|robots.txt|favicon.ico|sitemap.xml|rewrite.cfm)($|/.*$)" /> </conditions> <action type="Rewrite" url="/rewrite.cfm/{R:1}" /> </rule> </rules> </rewrite>
it should solve your problem if you have:
<cfset set(URLRewriting = "On")>
in / config / settings.cfm
source share