Forum Discussion
external URL redirection
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?
Please try this: when HTTP_REQUEST { if { [HTTP::host] equals "mobileapps.abc.com" } { HTTP::redirect "https://portal.manage.microsoft.com[HTTP::uri]" } }
8 Replies
- jaikumar_f5
Noctilucent
when HTTP_REQUEST { if { [HTTP::host] equals "https://mobileapps.abc.com" } { HTTP::respond 301 Location "https://portal.manage.microsoft.com" } }Try this.
- RaghavendraSY_7
Cumulonimbus
Please try this: when HTTP_REQUEST { if { [HTTP::host] equals "mobileapps.abc.com" } { HTTP::redirect "https://portal.manage.microsoft.com[HTTP::uri]" } }
- Rob_Higginbotha
Nimbostratus
That works! Thank you
- RaghavendraSY_7
Cumulonimbus
Cool, thanks for an update. If it worked for you, can you please accept my answer.
- RaghavendraSY
Altostratus
Please try this: when HTTP_REQUEST { if { [HTTP::host] equals "mobileapps.abc.com" } { HTTP::redirect "https://portal.manage.microsoft.com[HTTP::uri]" } }
- Rob_Higginbotha
Nimbostratus
That works! Thank you
- RaghavendraSY
Altostratus
Cool, thanks for an update. If it worked for you, can you please accept my answer.
- RaghavendraSY
Altostratus
Cool, thanks for an update. If it worked for you, can you please accept my answer.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
