Forum Discussion
Brendan_Hogan_9
Nimbostratus
Apr 21, 2006Cannot get redirect to work
Desired result:
If HTTP_REQUEST is http or https
output = https.
Also, if URI is "/", then append "/ps/signon.html"
The following works as long as request is http and not...
JRahm
Admin
Apr 24, 2006Try this:
when HTTP_REQUEST {
if { [HTTP::path] equals "/" } {
HTTP::redirect "https://[HTTP::host]/ps/signon.html"
} elseif { ([TCP::local_port] == 80) && ([HTTP::uri] eq "/ps/signon.html")} {
HTTP::redirect "https://[HTTP::host]/ps/signon.html"
}
}If there are several more conditions, utilizing a class would be cleaner.
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
