Forum Discussion
Replace Part of a URL path using LTM Policy
For migration purposes, we want to alter incoming URL's by use of Policies.
Incoming URL:
Needs to be changed to: https://www.mydomain.com/Data/LetsDoThis.html
We have been playing with the policies, but we are stuck with error's. Searched the internet, but can't find specific information. Also, F5 does not like the character "" When we try to save the rule, we get;
An error occurred: transaction failed:01071748:3: Policy '/Common/Drafts/POLICY_RW', rule 'RULE_ReWrite_URL'; invalid path, value '//Data/Here/'.
We don't want to use iRule's, because we heard F5 is going to stop supporting this in future releases?
Any help would be very welcome.
- RH
Nimbostratus
In addition to our question;
Incoming URL: Needs to be changed to: https://www.mydomain.com/Data/20180801/1228/LetsDoThis.html
But the last part of the URL can change by the minute, so that needs to stay intact: "/20180801/1228/LetsDoThis.html"
We are using F5 BIG-IP version 12.1.2 Build 1.0.271
- Samir_Jha_52506
Noctilucent
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
- RH
Nimbostratus
Thank you, that explains a lot. I will pass this on to our dev's.
- RH
Nimbostratus
Is there any way to use a string variable to circumvent the above problem? Or does anyone have any other solutions?
- Samir_Jha_52506
Noctilucent
Try iRule to solve issue ..
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