Forum Discussion
faizan123_23330
Nimbostratus
Jan 04, 2017URL redirection
We have two domain
i.e
--> abc.com.pk
--> xyz.com.pk
Both of these domains resolved on single virtual server ip address that we have configured on our F5. we have also used SAN certificates for H...
Hannes_Rapp
Nimbostratus
Jan 04, 2017Would use a normal Host-based HTTP redirect iRule. Stream is needed when modifications in the payload are needed, but I see no clue it being the case here.
when HTTP_REQUEST {
if { [HTTP::host] eq "abc.com.pk" }{
HTTP::respond 301 Location "https://abc.com.pk" Connection Close
event disable
}
}If you want to retain original request path and parameters, then replace "; with "https://abc.com.pk[HTTP::uri]" in the code above.
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