irule redirect with wildcards possible?

Hi All

Is there a possibility to configure a Irule for a redirect which contains wildcard?

As example:

https://onlineofferte-test.test.com/(*)

needs to be redirected to

https://onlineofferte.test.com/(*)

So the part where the (*) is should be kept in the url. A complete URL looks like this:

https:// onlineofferte-test.test.com/WebOfferte/Default.aspx?CollCD=UBS8232001

and should be redirected to

https://onlineofferte.test.com/WebOfferte/Default.aspx?CollCD=UBS8232001

Thanks for your help!

you may check HTTP::uri command.

HTTP::uri

something like that maybe

when HTTP_REQUEST {
    if { [HTTP::host] equals "onlineofferte-test.test.com" } {
        HTTP::redirect "https://onlineofferte.test.com/[HTTP::uri]"
    }
}