Forum Discussion
Need to redirect to an external url
- Jul 17, 2014
You may use this irule to do so.
when HTTP_REQUEST { if { [HTTP::host] equals "https://application.ourdomain.com" } { HTTP::respond 301 Location "https://external.link.com" } }
Hi, I'm trying to setup something similar but getting an issue with the vserver being up.
I want to re-direct all 443 traffic from the vserver to an external url. 80 will just re-direct to 443. I think i'm ok with that but my virtual server is down. this is because it thinks the pool member(s) are down but there are no pool members as I just need it to re-direct to external.
my question is how do I get around this?
I tried to create a pool with no members and changed the Irule to show the following:
when HTTP_REQUEST { if { [active_members Pool_test] == 0 }{ HTTP::redirect "" } }
however, that still doesn't bring it up.
any help would be great
thanks in advance
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