Forum Discussion
The_Bhattman
Feb 09, 2009Nimbostratus
I suppose you can write it like the following
when HTTP_REQUEST {
if {([HTTP::host] eq "www.ensynch.com") && ([HTTP::uri] ends_with "/") } {
HTTP::redirect "[HTTP::host]/test"
}
}
This specifically looks for "www.ensynch.com" and also checks if you have an URI, but assumes not to redirect if it the URI already contains /test. Since I you haven't stated exactly what the conditions of the redirect this is a simple point to start with.
Hope this helps
CB
CB