Forum Discussion
Pete_Paiva_7147
Nimbostratus
Apr 02, 2013Insertion of character into URL
Need some help creating an iRule to add a "," into the URL, if possible
URL before example:
https://www.mysite.com/folder/share/parameter?test=subfolder=folder2
UR...
Indrek_38497
Nimbostratus
Apr 04, 2013Hello,
Depends on your wishes you can redirect client on fixed URI
if { [HTTP::query] contains "test=subfolder" } {
HTTP::redirect [string map {"test=subfolder" "test=,subfolder"} [HTTP::uri]]
}
or you can add comma in to query before sending request to backend
if { [HTTP::query] contains "test=subfolder" } {
set fixed_query [string map {"test=subfolder" "test=,subfolder"} [HTTP::uri]]
HTTP::uri $fixed_query
}
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