Forum Discussion
Dipx
Nimbostratus
Aug 01, 2021Redirect domains to another domain with exclusion in URI
Hello, I'm new to f5 technologies, I would need help to create an iRule for the below requirements. Client requests to web1.com should redirect to web2.com ( Web2.com is on different environ...
Dipx
Nimbostratus
Aug 03, 2021Hello Enes,
It worked, but slight changes required.
However, rule is not working Chrome browser
when HTTP_REQUEST {
if { [HTTP::host] equals "web1.com" && not [matchclass [string tolower [HTTP::uri]] contains zatca_redirect_exception] } {
HTTP::redirect https://web2.com[HTTP::uri]}
}