Forum Discussion

dyobbs_25515's avatar
dyobbs_25515
Icon for Nimbostratus rankNimbostratus
Feb 03, 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]"

 

}