views:

25

answers:

1

I'm currently using ISAPI Rewrite

I'd interesting in moving my ColdFusion app to Apache and would therefore like to use MOD_Rewrite. Is this possible? Or do I need to rewrite all the rewrites?

A: 

Mod Rewrite

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]

ISAPI

RewriteRule (^/(flex2gateway|jrunscripts|cfide|cfformgateway|railo-context|files|images|javascripts|miscellaneous|stylesheets|robots.txt|sitemap.xml|rewrite.cfm)($|/.$)) $1 [L,I] RewriteRule ^/(.)$ /rewrite.cfm/$1 [L]

(Taking from ColdFusion on Wheels rewrite rules)

raulriera
thanks. With ISAPI Rerewrite I simply add a httpd.ini file in the www root which contains all the rewrite rules and it just works. Is this possible with Apache? or do I need to modify some other existing Apache file?
AnApprentice
you need to drop a .htaccess file in your www root
raulriera