Forum Discussion
demmo_251289
Nimbostratus
Oct 12, 2016Redirect to different domain also force http to https
Hi guys,
I have three domains (a, b and c) and i want to redirect first two of them (a,b) to the last (c), also force http to https for all of them.
I put together below rule which works but I w...
stan_piron
Cumulonimbus
Oct 15, 2016Hi,
irule provided by Odaah must not be enabled on HTTPS virtual server, if you enable it, browser will loop. yours manage tcp local port filter on c domain.
when HTTP_REQUEST {
switch -glob [HTTP::host] {
"a" -
"b" { HTTP::redirect "https://c[HTTP::uri]" }
"c" {
if {[TCP::local_port] == 80} {
HTTP::redirect "https://c[HTTP::uri]"
}
}
}
}
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