Can someone help me build a redirect from https to http. I know it is uncommon to do it vice versa but that’s how I need it. I tried various reverse iRules from http to https but it won’t be accepted by the F5 giving the error. My version is 11.5.3 so I can use a policy instead but can’t find a proper way to create one for this purpose.
There is an irule provided by F5…
Create a http virtual server listening on port 80 with _sys_https_redirect irule assigned
Lot of irules are available in devcentral portal…
when HTTP_REQUEST {
HTTP::redirect https://[getfield [HTTP::host] ":" 1][HTTP::uri]
}
First of all, you need to have a vs on F5 listening on https port 443 to catch the initial client request;
then you need to have a redirect irule on this https vs to redirect request to another vs that’s listening on http port 80, for purpose that this irule works you need a client ssl profile on the https vs.
Hi, thanks for your comment. I do have it set up this way - two vs for 443 and 80, just need a working irule assigned.
when HTTP_REQUEST {
HTTP::redirect http://[HTTP::host][HTTP::uri]
}