roger10dc_46053
Sep 17, 2010Nimbostratus
URI Rewrite
Hi,
How can I redirect a URI from:
http://www.xyz.com/something/howto.hml
to
http://www.xyz.com/somethingX/howto.hml
Jon
Give this a shot.
when HTTP_REQUEST {
if {[class match [IP::client_addr] eq internal_net] and [string tolower [HTTP::host]] eq "www.csg.xyz.com" and [string tolower [HTTP::uri]] starts_with "/citrix/xenapp/" } {
HTTP::redirect "https://csg.xyz.com/citrix/xenapp1/" } }
I used "starts_with" instead of "eq" so we'd redirect people even if their exact uri didn't match...you can also use "contains" here if you like.
This should redirect internal clients from "http://www.csg.xyz.com/citrix/xenapp/" to "https://csg.xyz.com/citrix/xenapp1/"