Forum Discussion
Mike_Breeden_61
Nimbostratus
Oct 03, 2008HTTPS Redirect
I have the following IRule that sets the uri for an address to the following on http requests. What I want is to be able to use the same rule but also have it change from the http to https. My IRule i...
Arie
Altostratus
Oct 03, 2008You're only changing the URI that's sent to the server; there is no change on the client side. If you need to change it to https presumably you want to use SSL between the client and the server (rather than just between the Big-IP and the server). In that case you'll want to use a redirect:
HTTP::redirect "https://myclaytonbenefits.com/SHCM/"
This sends a temporary redirect to the client (302). If you need to use a permanent redirect (301) you need to use HTTP::respond.
Keep in mind that redirects cannot be stacked in a single connection; if you have a VS with multiple iRules with redirects you'll run into problems unless you take certain measures.
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
