Hi,
When requesting www.company.de/abc/xyz/ the HTTP request is:
GET /abc/xyz/?param1=value1¶m2=value2 HTTP/1.1
Host: www.company.de
User-agent: Mozilla...
Other-Headers
When working with HTTP:
- www.company.de is HTTP Host : variable [HTTP:host]
- /abc/xyz/?param1=value1¶m2=value2 is the uri : variable [HTTP:uri]
- /abc/xyz/ is the path : variable [HTTP:path]
- param1=value1¶m2=value2 is the query string : variable [HTTP:query]
Try the following irule:
when HTTP_REQUEST {
if {[string tolower [HTTP::host]] equals "some.company.de"} {
HTTP::redirect "https://some.company.com[HTTP::uri]"
}
}