Forum Discussion
Brad_Parker
Cirrus
when HTTP_REQUEST {
set my_loc "https://[HTTP::host][HTTP::uri]"
TCP::respond "HTTP/1.1 301 Moved Permanently\r\nLocation: $my_loc\r\nConnection: close\r\nContent-Length: 0\r\n\r\n"
TCP::close
}
nitass
May 25, 2015Employee
you just use https HTTP::redirect command.
HTTP::redirect
https://devcentral.f5.com/wiki/iRules.HTTP__redirect.ashx
e.g.
HTTP::redirect "https://www.google.com"