Forum Discussion
redirecting http host to same https modified uri
Hi,
I would like to achieve following scenario,
http://abc.xyz.com ------> Redirect to https://abc.xyz.com/abc
http to https ltm built in conversion has been assigned and functioning, few attempts resulted in creating a redirection loop.
Cheers,
Kalana
1 Reply
Hi Kalana,
you could copy and then customize the build-in "_sys_https_redirect" iRule as needed. To change redirect to a specific and fixed URI you could use the iRule below as a starting point...
when HTTP_REQUEST { HTTP::redirect "https://[getfield [HTTP::host] ":" 1]/insert_your_uri" }Note: You have to assign the iRule to the HTTP virtual server only.
Cheers, Kai
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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