For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

Parveez_70209's avatar
Parveez_70209
Icon for Nimbostratus rankNimbostratus
Mar 13, 2014

How to Reformat/Rewrite an Irule using HTTP Class

Hi Team,

 

As In v10 through v11.3.0 ,as we can use something called an HTTP Class which can also redirect to HTTPS. And as they are more efficient than iRules (a good thing on a busy F5) and can probably handle 95% our redirect situations.

 

How can we rewrite the below Irule using HTTP Class through GUI. Kindly assist in guiding the same by using a screenshot through GUI.

 

when HTTP_REQUEST { set https_uri [string tolower [HTTP::uri]] if { $https_uri equals "/" } { HTTP::redirect "https://test.site.com/ttt/shell/" } }

 

This will be my first start using HTTP Class.

 

Thanks and Regards Parveez

 

3 Replies

  • uni's avatar
    uni
    Icon for Altocumulus rankAltocumulus

    I recommend you do not move to HTTP classes, as this functionality has been removed from v11.4. They have been replaced with (the frustratingly incomplete and cumbersome) Local Traffic Policies.

     

  • Hi Uni,

     

    Thanks for updating, but this is new to me, wanted to learn how we can do through GUI , the provided URL as an example.

     

    Thanks and Regards Parveez

     

  • Hi,

     

    Can someone assist me please.This is a new topic to me.

     

    Thanks and Regards Parveez