Using Helicon ISAPI_Rewrite 3 with cfwheels URL rewriting

Dec 07, 2009

Maybe one for the cfwheels docs..

The URL rewriting chapter in the CFWheels docs mentions Ionic's ISAPI Rewrite Filter. However, I've got a machine which is running IIS6 and version 3 of the Helicon Tech ISAPI rewrite module. Version 3 of this module uses .htaccess, rather than the .ini files of version 2.

If you're planning on running CFWheels with full rewriting using Version 3 of this module, you'll need to modify the .htaccess file supplied for use with apache. Don't worry, it's just a full stop (that's period to you USA people) needs removing..

in the last line:

RewriteRule ^(.*)$ ./rewrite.cfm/$1 [L]

Should read

RewriteRule ^(.*)$ /rewrite.cfm/$1 [L]

Then it appears to play nicely.

Comments

Brian

Brian wrote on 12/17/09 9:08 PM

That got me closer, my only issue is it won't load css or images.

What does your full .htaccess file look like?
Tom

Tom wrote on 12/18/09 10:00 AM

@Brian
I've had no problems with css/images...

Here's my .htaccess: (naturally the line wrapping isn't going to work here..)

Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_URI} !^.*/(flex2gateway|jrunscripts|cfide|cfformgateway|railo-context|files|images|javascripts|miscellaneous|stylesheets|robots.txt|sitemap.xml|rewrite.cfm)($|/.*$) [NC]
RewriteRule ^(.*)$ /rewrite.cfm/$1 [L]

Write your comment



(it will not be displayed)