Forum Discussion
Help with redirect https
I wrote this iRule below and it works great for the most part but, when someone types https://iam.company.com it won't redirect. It only redirects http://iam.company.com to https://iam.company.com:8443/aveksa/main. Is there a way to get it to redirect https as well? Thanks for your help!
when HTTP_REQUEST { if { [string tolower [HTTP::host]] eq "iam.company.com" } then { if { [HTTP::uri] eq "/" } then { HTTP::redirect "https://iam.company.com:8443/aveksa/main" } } }
2 Replies
- Josiah_39459Historic F5 Account
I'm guessing you have two vips, one on 80 and one on 443 and this irule is on the 80 vip. If you put it on BOTH the 80 vip and the 443 vip, you will get the behavior you desire.
- Daniel_Varela
Employee
Have you attached that irule to the VS listening on port 8443?
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