Forum Discussion
Gill_32697
Nimbostratus
Apr 11, 2013header insert
Need help, please redirect and head incert
I need this: http://peotime.swbc.com/
to become this: https://peotime.swbc.com/qqest/
It needs to change http to https and incert the /qqest if missing
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/qqest" } {
pool PEOTime
}
else {
pool PEOSummit
}
}
2 Replies
- Kevin_Stewart
Employee
I would do this with TWO virtual servers:
Port 80 (HTTP) VIP with nothing but an HTTP profile and the built-in HTTP-to-HTTPS iRule. This will take all HTTP:// port requests and automatically redirect them to the HTTPS virtual server. No pool or other profiles necessary on this VIP.
Port 443 (HTTPS) VIP with your application pool, client SSL profile, any other profiles and settings, and the following iRule:when HTTP_REQUEST { if { [HTTP::uri] equals "/" } { HTTP::respond 302 Location "/qqest" } elseif { [string tolower [HTTP::uri]] starts_with "/qqest" } { pool PEOtime } else { pool PEOsummit } } - Gill_32697
Nimbostratus
Nice.. Thank you for the help as always.
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