Hi Guys,
I am trying to mimic a rule we currently have configured on our web servers.
RewriteCond %{REQUEST_URI} ^/view/.*\.do.*
RewriteCond %{REQUEST_URI} !^/view/secure/.*\.do.*
RewriteCond %{REQUEST_URI} !^/view/en_AU/secure/.*\.do.*
RewriteRule ^/(.*) ABC News & Headlines – Australian Broadcasting Corporation [R,L]
switch -glob [HTTP::uri] {
“/view/*.do*” {
HTTP::redirect “http://abc.com.au[HTTP::uri]”
}
“/view/secure/*.do.*” {}
“/view/en_AU/secure/*.do.*” {}
}
as far as order of operation goes the first entry matches the 2 below so should i put the most specific first and the least specific last?
If a match is made do the rest of the arguments get parsed?
also it is possible to use the not equals operator when using switch?