Rule Examples
path('/healthcheck') -> rewrite('/healthcheck.cfm')path(/healthcheck) -> done
path(/healthcheck) -> response-code(503) // This rule is skippedregex-nocase( ".*\.(ttf|woff|woff2|eot|otf)$" ) -> done
regex-nocase( ".*\.(ttf|woff|woff2|eot|otf)$" ) -> response-code(503) // This rule is skippedmethod(GET) -> set(attribute='%{o,type}', value=get)regex('(.*).css') -> { rewrite('${1}.xcss'); set(attribute='%{o,rewritten}', value=true) } regex-nocase('(.*).jpg$') -> redirect('${1}.png')set(attribute='%{i,someHeader}', value=someValue)set(attribute='%{o,X-Powered-By}', value='CommandBox')
header(header="X-Powered-By", value="CommandBox")
true -> set(attribute='%{o,X-Powered-By}', value='CommandBox')
true -> header(header="X-Powered-By", value="CommandBox")Last updated
Was this helpful?