Forum Discussion
Aug 01, 2021
Hi Dipx,
Create a datagruop and add the excluded URIs.
Change the datagroup name in the below iRule.
when HTTP_REQUEST {
if { [HTTP::host] equals "web1.com" && not [class_match [string tolower [HTTP::uri]] starts_with datagroupname] } {
HTTP::redirect https://web2.com[HTTP::uri]
}
}
You can use equals or start_with as per your need.
Datagroup strings must start with /