문제

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?

도움이 되었습니까?

해결책

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)

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top