Forum Discussion
SteveEason
Sep 18, 2019Cirrus
HTTP to HTTPS redirect is stripping out URL referral info
We are using an iApp to build out our site using the default HTTP port 80 to HTTPS port 443 options. Our developers have started using referral logic on one of the sites and if a client of ours uses...
crodriguez
Sep 18, 2019Ret. Employee
You need to make sure you are including HTTP::uri in the redirect string you generate in the iApp. (I am assuming the redirect happens via an iRule the iApp generates and associates with the port 80 virtual server.)
The example below is from the f5.http iApp which is supplied by default on a BIG-IP system:
set redirect_rule [string map [list _PORT $redirect_to_port] {
when HTTP_REQUEST {
HTTP::redirect https://[getfield [HTTP::host] : 1]:_PORT[HTTP::uri]
}
}]
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects