Forum Discussion
Nlepore_67643
Nimbostratus
Jan 25, 2013Having issues with redirect
I'm trying to redirect certin pages to https, based on URI in a class.
Looks to be working for the default.aspx page, but not the others.
when HTTP_REQUEST {
...
What_Lies_Bene1
Cirrostratus
Jan 25, 2013Try this;
when HTTP_REQUEST {
if { [HTTP::path] equals "/" } {
HTTP::redirect "http://[HTTP::host]/default.aspx"
}
elseif { [class match [string tolower [HTTP::uri]] starts_with secured_uris] } {
HTTP::redirect "https://[HTTP::host][HTTP::uri]"
}
}
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