Forum Discussion
Will_Caetano_97
Nimbostratus
Sep 07, 2016HELP - 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/cust...
ekaleido
Cirrus
Sep 07, 2016HTTP::uri ALWAYS starts with / so your code should read:
if {[string tolower [HTTP::uri]] starts_with "/products/new/"ekaleido
Cirrus
Sep 07, 2016Also, if you just want to replicate whatever comes after new/ you are not going to get away with just doing a redirect. You're going to have to capture everything after new/ to a variable to insert in the redirect.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects