Forum Discussion

RH's avatar
RH
Icon for Nimbostratus rankNimbostratus
Aug 01, 2018

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.

 

7 Replies

  • 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's avatar
      RH
      Icon for Nimbostratus rankNimbostratus

      Thank you, that explains a lot. I will pass this on to our dev's.

       

    • RH's avatar
      RH
      Icon for Nimbostratus rankNimbostratus

      Is there any way to use a string variable to circumvent the above problem? Or does anyone have any other solutions?