Forum Discussion
HTTP to HTTPS redirect with URI editing.
- Feb 14, 2018
Ok got the solution following rule works.
when HTTP_REQUEST { if {[HTTP::uri] contains "/IT/Team/"} { set uri [string map {"/IT/Team/" "/location/"} [HTTP::uri]] HTTP::redirect "https://xyz.com$uri" } }
Ok got the solution following rule works.
when HTTP_REQUEST { if {[HTTP::uri] contains "/IT/Team/"} { set uri [string map {"/IT/Team/" "/location/"} [HTTP::uri]] HTTP::redirect "https://xyz.com$uri" } }
I have mapped DNS entry of Virtual Server to FQDN name abc.com using etc host file. so all http request with uri containing /IT/Team/ is redirected to xyz.com. But other request are getting dropped
getting following message
This page isn’t working abc.com redirected you too many times. Try clearing your cookies. ERR_TOO_MANY_REDIRECTS
How to make other request to go to original site abc.com ?
Recent Discussions
Related Content
* 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