Forum Discussion
kalicut_48905
Nimbostratus
Feb 04, 2010HTTP 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
Feb 07, 2010As 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
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
