Forum Discussion
Svevak_211593
Nimbostratus
Sep 26, 2017redirect specific datagroup from http to https
Hello,
I would like to redirect from http to https, but only for one specific datagroup.
Is this possible:
if {[IP::client_addrs] equals "datagroup-xyz"} {
HTTP::redirect https://www.example.de[HTTP::uri]
}
Thank you!
- Lee_Sutcliffe
Nacreous
Almost, try this iRule:
if { [class match [IP::client_addr] equals datagroup-xyz] } { HTTP::redirect https://www.example.de[HTTP::uri] }
- Jad_Tabbara__J1
Cirrostratus
Hi,
you need to add the operator, try the following
when HTTP_REQUEST { if { [class match [IP::client_addr] equals datagroup-xyz] } { HTTP::redirect https://www.example.de[HTTP::uri] } }
Let us know if it works
Regards
- Svevak_211593
Nimbostratus
Hey, yes this worked for me perfectly! Thank you!!
One more question. How would I implement an exception like for the crossdomain.xml or index.php etc?
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