Forum Discussion
satish_txt_2254
Nov 01, 2017Cirrus
iRules base on URL matching
I have following irules and its working but now i have requirement to match URL developers and developer (without "s") so how do i match that string? also i want to redirect developers.vivox.com (bot...
Samir_Jha_52506
Nov 01, 2017Noctilucent
There are many ways to match redirection things. Easy option to add one more OR condition in same iRule, if statement is same like old irule. Let us know if any question.
when HTTP_REQUEST {
log local0. "client: [IP::remote_addr] -> [HTTP::host][HTTP::uri]"
if { ([string tolower [HTTP::host]] equals "developers.example.com") or ([string tolower [HTTP::host]] equals "developer.example.com") }{
HTTP::redirect "https://[HTTP::host][HTTP::uri]"
}
else {
pool QA_pool
}
}
- satish_txt_2254Nov 01, 2017Cirrus
as soon as i put following my website stopped working
HTTP::redirect "https://[HTTP::host][HTTP::uri]"
if i type in browser https:// mostly my website works
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