Forum Discussion
Hello everybody, I would like redirect host using datagroup leaving intact the URI.
domain.com/[$URI] -> [$URI]
orignately I had the following iRule. when HTTP_REQUEST { if { [class match [HTTP::host][HTTP::uri] eq datagrp_redirect] } { HTTP::redirect [class match -value [HTTP::host][HTTP::uri] eq datagrp_redirect ]
}
}
with following datagrp_redirect datagroup Configuration:
ltm data-group internal datagrp_redirect { records { domain-international.com/ { data https://www.domain-international.com } domain-usa.com/ { data https://www.domain-usa.com } bobo.ch/ { data https://www.domain.ch } bobo.fr/ { data https://www.domain.fr } } type string
Could be possible to insert URI variable within the datagroup record and take advantage of datagroup feature?