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]" } }
when HTTP_REQUEST { if { [HTTP::host] equals "https://mobileapps.abc.com" } { HTTP::respond 301 Location "https://portal.manage.microsoft.com" } }
Try this.
- RaghavendraSY_7Cumulonimbus
Please try this: when HTTP_REQUEST { if { [HTTP::host] equals "mobileapps.abc.com" } { HTTP::redirect "https://portal.manage.microsoft.com[HTTP::uri]" } }
- Rob_HigginbothaNimbostratus
That works! Thank you
- RaghavendraSY_7Cumulonimbus
Cool, thanks for an update. If it worked for you, can you please accept my answer.
- RaghavendraSYAltostratus
Please try this: when HTTP_REQUEST { if { [HTTP::host] equals "mobileapps.abc.com" } { HTTP::redirect "https://portal.manage.microsoft.com[HTTP::uri]" } }
- Rob_HigginbothaNimbostratus
That works! Thank you
- RaghavendraSYAltostratus
Cool, thanks for an update. If it worked for you, can you please accept my answer.
- RaghavendraSYAltostratus
Cool, thanks for an update. If it worked for you, can you please accept my answer.
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