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 {
...
Nlepore_67643
Nimbostratus
Jan 28, 2013If that isn't the best way to write this, what is?
when HTTP_REQUEST {
if {[HTTP::path] equals "/"}{
HTTP::respond 301 location https://[HTTP::path]
} elseif {[class match [string tolower [HTTP::uri]] starts_with secured_uris]}{
HTTP::respond 301 location 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