Forum Discussion
nitass
Feb 02, 2012Employee
can you try something like this?
[root@ve1023:Active] config b virtual bar list
virtual bar {
destination 172.28.19.79:80
ip protocol 6
rules myrule
profiles {
http {}
tcp {}
}
}
[root@ve1023:Active] config b rule myrule list
rule myrule {
when HTTP_REQUEST {
if {[string tolower [HTTP::host]] equals "irule.com"}{
HTTP::redirect "https://www.[HTTP::host][HTTP::uri]"
}
}
}
[root@ve1023:Active] config curl -I http://irule.com/
HTTP/1.0 302 Found
Location: https://www.irule.com/
Server: BigIP
Connection: Keep-Alive
Content-Length: 0