从ISAPI重写迁移到Mod_REwrite

时间:2010-08-05 23:10:26

标签: apache mod-rewrite coldfusion isapi-rewrite

我目前正在使用ISAPI Rewrite

我很有兴趣将我的ColdFusion应用程序移动到Apache,因此我想使用MOD_Rewrite。这可能吗?或者我是否需要重写所有重写?

1 个答案:

答案 0 :(得分:0)

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]

(取自ColdFusion on Wheels重写规则)