I use cfwheels 1.4 on Railo 4.2.2.004 on windows server 2008R2 with IIS 7.5 and can't get URL rewriting to work.
In config/settings.cfm I have
set(URLRewriting="On");
My web.config looks like this
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<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>
</system.webServer>
</configuration>
I installed the URL rewrite module in IIS. IIS does show the inbound rules out of the web.config file.
The browser shows an
Error: Redirection error
I basically followed: http://stackoverflow.com/questions/20227106/removing-index-cfm-from-url-with-web-config
What am I missing?
If I use the Test Pattern Tool in IIS, what should the Input data to test look like?
www.mydomain.com/index.cfm/images/home
or
What should the result be?
www.mydomain.com/index.cfm/images/home
or
Regards Thorsten
--
You received this message because you are subscribed to the Google Groups "CFWheels" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cfwheels+u...@googlegroups.com.
To post to this group, send email to cfwh...@googlegroups.com.
Visit this group at http://groups.google.com/group/cfwheels.
For more options, visit https://groups.google.com/d/optout.