Forum Discussion
kalicut_48905
Nimbostratus
16 years agoHTTP class to redirect http to https
Hi,
Currently we have iRule that does http to https redirection for certain uri (like /app1/* & /app2/*). Can someone provide a simple example of how to do this using HTTP Class.
...
hoolio
Cirrostratus
16 years agoAs Bhattman suggests, you can use an HTTP class to match requests with a URI starting with /app1/ and app2/.
It's more efficient to use string matches than regexes for iRules or HTTP classes. So you could add two paths using pattern strings (/app1/* and /app2/*), set the Send To value to 'Redirect to...' and the Redirect to Location to https://[HTTP::host][HTTP::uri].
Aaron
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