Forum Discussion
chells2_241915
Nimbostratus
Feb 08, 2016Redirect URL to different hostname after SSL offloading
Hi,
I have a doubt on how to configure irules such that it will redirect the https://website1.com/acd URL to http://website.com/acd
SSL offloading is done for the URL https://website1.com i...
Kai_Wilke
MVP
Feb 08, 2016Hi Chells,
if you gonna redirect the user using an iRule within the
HTTP_REQUEST event (aka. client side), then you don't have to care about SSL-Offloading (aka. server side) and any possible response rewite. Just try the snippet below to see if this is working out for you...
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] equals "website1.com" } then {
if { [string tolower [HTTP::uri]] starts_with "/abc" } then {
HTTP::redirect "http://website.com[HTTP::uri]"
}
}
}
Cheers, Kai
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
