Forum Discussion
Replace Part of a URL path using LTM Policy
Here problem is with
(Hash). Its not a fault of your iRule or even F5 policy, its more of the underlying HTTP standard. That is the reason F5 policy or iRule will not allow you to save.
In the URI world the Hash-Sign () is called a "Fragment" and is completely suppressed from sending by every browser.
In-fact, everything after the Hash-Sign never initiate connection and therefor never reaches your F5.
For more information : https://en.wikipedia.org/wiki/Fragment_identifierBasics
- RHAug 01, 2018
Nimbostratus
Thank you, that explains a lot. I will pass this on to our dev's.
- RHAug 06, 2018
Nimbostratus
Is there any way to use a string variable to circumvent the above problem? Or does anyone have any other solutions?
- Samir_Jha_52506Aug 06, 2018
Noctilucent
Try iRule to solve issue ..
- RHAug 06, 2018
Nimbostratus
Thank you for your quick reply, I will give that a try.
- Samir_Jha_52506Aug 06, 2018
Noctilucent
Tried to manipulate string variable in iRule. You can try some thing like this, if above incoming & outgoing url is same.
Hope will work.
when HTTP_REQUEST { set url [string range [HTTP::uri] 12 end] log local0. “URI: $url” HTTP::redirect "https://www.mydomain.com/Data$url" }
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