cymru81
May 28, 2020Altocumulus
http to https based on url
Hi, wondering if someone can help, we have two http sites running on a single VIP eg livesite.domain.com and testsite.domain.com is it possible to redirect them to the https equivalent with an irule?
For single sites we have applied below and this works fine:
when HTTP_REQUEST {
TCP::respond "HTTP/1.1 302 Found\r\nLocation: https://examplesite.domain.com\r\nConnection: close\r\nContent-Length: 0\r\n\r\n"
TCP::close
}