Forum Discussion
youssef1
Apr 11, 2018Cumulonimbus
Hello,
You can use this irule no matter the number of the ticket. the ticket number can be dynamic and I think it's your need.
when HTTP_REQUEST {
set hostname [string tolower [HTTP::host]]
set uri [string tolower [HTTP::uri]]
if {$host eq "www.domain.com" && $uri starts_with "/tickets/" }{
set numberticket [string range $uri 9 end]
set redirecturi "/test/event/$numberticket/seatplan/"
HTTP::redirect "https://www.anotherdomain.com$redirecturi"
}
}