Forum Discussion
URI rewrite/replace character
quick history of what i'm doing and then what i'm hoping to do.
First i have a irule that redirects incoming url requests in on a vip and maps them to the internal virtual servers matching that name these are used internally for testing in our network. I can post the irule if needed. I would like to extend these externally for testing as well. Now the issue presented is that i'm looking at how to extend to external.
Example: internally we would use [email protected] externally we would use [email protected]
Now to only entry created on F5 would be the internal which would be [email protected]
is there a way to have an irule change/set the underscore to a dash this would only happen on the external facing vip + irule so essentially an external request would come in as [email protected] and get rewrote to [email protected]
please keep in mind this is not for just 1 vip but has to scale to 100s
3 Replies
- nitass
Employee
i think it may be easier to understand what you are trying to do if you can post the current irule.
- keenon_49862
Nimbostratus
was not sure i needed another irule prior to this one to do the underscore replace with a dash or if i could just add it before set vsname [string tolower [HTTP::host]]
- nitass
Employee
is there a way to have an irule change/set the underscore to a dash
is string map usable?
% set h dev2_test dev2_test % string map {_ -} $h dev2-test
Recent Discussions
Related Content
* 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