F5 is upgrading its customer support chat feature on My.F5.com. Chat support will be unavailable from 6am-10am PST on 1/20/26. Refer to K000159584 for details.

Forum Discussion

dyobbs_25515's avatar
dyobbs_25515
Icon for Nimbostratus rankNimbostratus
Feb 02, 2012

iRule to redirect a variable to http

Guys hi,

 

 

I'm newbie here. I wanted to create an iRule, that truncates the later part of the message from the "http://.acme.com" to http://

 

 

any help is appreciated.

 

 

Will this work?

 

 

when HTTP_REQUEST {

 

if { [HTTP::uri] starts_with ".acme.com" } {

 

HTTP::redirect "http://[HTTP::host]"

 

}

 

 

24 Replies