Forum Discussion
Aug 17, 2010
matchclass, code okay, and would you do this differently?
Okay so I'm looking to redirect requests to mydomain.com and http://www.mydomain.com/ to https://www.mydomain.com/secure, if no matches load balance to the pool specified in the VS.
Is this ...
Chris_Miller
Altostratus
Aug 17, 2010 when HTTP_REQUEST {
if { [class match [stringtolower [HTTP::host]] eq myclass] } {
HTTP::respond 301 Location "https://www.mydomain/secure"
} else { pool "mysecurepooll_443" }
}
I think that should work. This is what I'd do for v10.
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
