Matt_A_184631
Feb 27, 2015Nimbostratus
Solved
HTTP Redirect from intranet to internet site
I am wanting to create a redirect using and internal DNS name that redirects to an external one. EX: http://internal.mycompany.com redirects to http://mycompany.f5.com
I have configured a VIP on the LTM that is internal.mycompany.com and created the following iRule
when HTTP_REQUEST { HTTP::redirect "https://mycompany.f5.com/?whr=tetrapak.com[HTTP::uri]" } This iRule is being attached to the VIP in the iRule section. At this point I am not getting redirected. I have looked up the iRule but can't seem to find the complete picture on how to set this up. Can someone help please?
It needs to be:
when HTTP_REQUEST { HTTP::respond 301 "Location" "https://mycompany.f5.com[HTTP::uri]?whr=tetrapak.com" }
HTTP::uri is caps sensitive.