Forum Discussion
Brad_Parker_139
Nacreous
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://clouddocs.f5.com/api/irules/HTTP__redirect.html
e.g.
HTTP::redirect "https://www.google.com"