Forum Discussion
Belavrin
Nimbostratus
Apr 12, 2021https Redirect with and without folder
Hello experts :) I'm really new to BIG IP and need to make some irules for some hosts. My Problem is that i need some "special" redirects and the one i searched and tested did not work for me. ...
spalande
Nacreous
Apr 12, 2021Try below
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"/" {
HTTP::respond 301 Location "https://example.com/content"
}
"/admin*" {
if { [class match [IP::client_addr] equals "datagroup_internal"] } {
HTTP::respond 301 Location "https://example.com/#/login"
} else {
reject
}
}
"/pwreset*" {
HTTP::respond 301 Location "https://example2.com/xxx"
} default {
return
}
}
}
Nikoolayy1
MVP
Apr 12, 2021Nice example.
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