Forum Discussion
oke_hallo_31421
Nimbostratus
Apr 07, 2017iRule with Data Groupe
Hello, im searching for a solution, this doesnt work, and i cant find out why. Thanks for help 🙂
when HTTP_REQUEST {
if{[class match [IP::remote_addr] equals /Common/redirect_to_google]}
HTTP::respond 301 Location "https://www.google.ch[HTTP::uri]"
}
else{
reject
}
}
- nathe
Cirrocumulus
oke, looks like you are missing a open curly brace on line 2. this irule now works for me:
when HTTP_REQUEST { if {[class match [IP::remote_addr] equals /Common/redirect_to_google]} { HTTP::respond 301 Location "https://www.google.ch[HTTP::uri]" } else { reject } }
Hope this helps,
N
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