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]
Miguel

Miguel wrote on 09/18/10 12:47 AM

That is the solution for my problem!! I'm hosting in Hostek.com and the default .htacces doesn't work. I deleted the "." and Bingo!! CFWheels is working now

Thanks a lot

Write your comment



(it will not be displayed)





About Tom

Tom is the author of this blog and the brains behind OxAlto Design More ...

Categories

Monthly Archives

Links

Tag Cloud

coldfusion web-development internet misc music cfwheels railo drupal vps chchchoir blueprintcss jquery mangoblog flex ipod mac wowza demos flash flickr google hinkseystudio itunesu wallpapers wordpress

Feeds