开发者

Migrating from ISAPI Rewrite to Mod_REwrite

开发者 https://www.devze.com 2023-01-10 05:40 出处:网络
I\'m currently using ISAPI Rewrite I\'d interesting in moving my Col开发者_如何学CdFusion app to Apache and would therefore like to use MOD_Rewrite. Is this possible? Or do I need to rewrite all the

I'm currently using ISAPI Rewrite

I'd interesting in moving my Col开发者_如何学CdFusion app to Apache and would therefore like to use MOD_Rewrite. Is this possible? Or do I need to rewrite all the rewrites?


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)

0

精彩评论

暂无评论...
验证码 换一张
取 消