Forum Discussion
brepav123_22459
Cirrus
Mar 09, 2016iRule for redirecting to external site
Hi everyone, im trying to create an iRule which takes an HTTPS request and redirects it towards an external site. Basically taking an incoming request, changing the domain name, then keeping the same...
Brad_Parker_139
Nacreous
Mar 09, 2016First of all your VIP will require an HTTP profile and subsequently a client SSL profile since you say your site is HTTPS. After you have those things, this simple iRule will preform a redirect and keep the URI in the original request.
when HTTP_REQUEST {
HTTP::respond 302 noserver Location "https://new.domain.name[HTTP::uri]"
}
brepav123_22459
Cirrus
Mar 09, 2016Thanks Brad for that info. Will that keep the connection going through the F5 or does it redirect the client outside the F5? Reason being we have a client who is only capable of TLS 1.0 and they need to access a site that only allows TLS 1.2. So we want to make sure the interaction runs through the F5 so the connection from the F5 to the server is 1.2 and the F5 to the client is 1.0. Thanks!
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects