I would like to create an irule to redirect clients hitting the VIP to an external website.
for example
internal (DNS) - https://mobileapps.abc.com (VIP) 192.168.1.115
redirect to external - https://portal.manage.microsoft.com
Is an irule the right way to do this?
when HTTP_REQUEST {
if { [HTTP::host] equals "https://mobileapps.abc.com" }
{
HTTP::respond 301 Location "https://portal.manage.microsoft.com"
}
}
Try this.
Please try this: when HTTP_REQUEST { if { [HTTP::host] equals “mobileapps.abc.com” } { HTTP::redirect “https://portal.manage.microsoft.com[HTTP::uri]” } }
Please try this: when HTTP_REQUEST { if { [HTTP::host] equals “mobileapps.abc.com” } { HTTP::redirect “https://portal.manage.microsoft.com[HTTP::uri]” } }
Cool, thanks for an update. If it worked for you, can you please accept my answer.
Cool, thanks for an update. If it worked for you, can you please accept my answer.
Cool, thanks for an update. If it worked for you, can you please accept my answer.