Forum Discussion

Jeremy_Dorrough's avatar
Jeremy_Dorrough
Icon for Nimbostratus rankNimbostratus
Feb 13, 2006

NEWBIE redirect questions

I am not a programmer to say the least. I have been given the task to convert our old bigip rules (v4) to the new bigip irules. Any help is greatly appreciated.

 

 

first type of rule:

 

 

redirect to "https://someipaddress"

 

 

second type or rule:

 

 

 

if (http_uri matches_regex ".*cmd.exe*." or http_uri matches_regex ".*root.exe*." or http_uri matches_regex ".*admin.dll*." or http_uri matches_regex ".*default.ida*.") {

 

discard

 

}

 

else {

 

use pool somepool

 

}

 

 

 

third rule:

 

 

if (http_host contains "something") {

 

redirect to "https://website.com/%u"

 

}

 

else {

 

use pool somepool

 

}

 

 

 

 

 

Thanks in advance for any help!

 

Jeremy

 

1 Reply

  • Check out this post, most of what you are asking for is here:

     

     

     

    http://devcentral.f5.com/Default.aspx?tabid=28&view=topic&forumid=5&postid=5715

     

     

     

    There are others on the forum as well that discuss 4.x -> 9.x conversion.

     

     

    Post back if you get stuck.