Will_Caetano_97
Sep 07, 2016Nimbostratus
HELP - Wildcard URI Redirect
I'm new to iRules. And I'm trying to create what should be a simple iRule. I would like to redirect traffic from
http://www.domain1.com/products/new/*
to
http://www.domain1.com/custom/new-items/*
So far, here's what I have
when HTTP_REQUEST { if {[string tolower [HTTP::uri]] starts_with "products/new/"} {HTTP::respond 301 Location "http://www.domain1.com/custom/new-items/*"}
thanks for the help. I'm sure it's just something simple that I'm missing.