Forum Discussion
ucgwebmaster_95
Nimbostratus
May 21, 2008http to https for specfic pages
Good Day,
I am a newbie to the F5 and Irules. I work more on the operations side and our developers have come to me with a task. we have a site. http://my.site.com
I have setup ...
Colin_Walker_12
May 21, 2008Historic F5 Account
So you want to inspect traffic and if it's one of those two URLs send it through the HTTPS VS?
If that's the case, try something like:
when HTTP_REQUEST {
switch "[HTTP::host][HTTP::uri]" {
"http://my.site.com/login.aspx" -
"http://my.site.com/checkout.aspx" -
default {
HTTP::redirect https://[HTTP::host][HTTP::uri]
}
}
That will send an HTTP redirect forcing those two particular URLs to an HTTPS version of the same URL. Just apply the above iRule on the port 80 VS and you should be all set.
Colin
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