Forum Discussion
Chris_Olson
Nimbostratus
Aug 24, 2011How do I exclude single site from https redirect?
I want all http requests to be redirected to https except one.
For example, the main website tied to the VIP address is www.website.com. I Do NOT want that to be rediected to https.
Ho...
The_Bhattman
Nimbostratus
Aug 24, 2011Hi Chris,
Here is an example where you can redirect based on the PATH
when HTTP_REQUEST {
if {[HTTP::host] eq "www.website.com" } {
switch -glob [string tolower [HTTP::uri]] {
"/uat*" -
"/stage*" -
"/prod*" { HTTP::redirect "https://[HTTP::host][HTTP::uri]" }
}
}
I hope this helps
Bhattman
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