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
Cirrus
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]"
}
Brad_Parker
Cirrus
Mar 09, 2016What you are asking for is not a redirect then. Is the site behind the F5 LTM?
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