Forum Discussion
cquick11_115408
Nimbostratus
Mar 22, 2014http redirect to https based on http::uri
I am trying to set up redirection from http to https, and vice versa, based on uris.
examples: /login.aspx /dashboard.aspx. If someone went to login.aspx and it should go to https, then if someone cl...
cquick11_115408
Nimbostratus
Mar 23, 2014when HTTP_REQUEST {
if { not [class match [HTTP::uri] starts_with stage_ssl] } {
HTTP::redirect "http://[HTTP::host][HTTP::uri]"
}
}
when HTTP_REQUEST {
if { [class match [HTTP::uri] ends_with stage_ssl] } {
HTTP::redirect "https://[HTTP::host][HTTP::uri]"
}
}
This seems to be working, as I applied the first one the https VS and the other to the http VS. You are correct, I want logins and dashboards to be https and everything else http once on those pages. Please, send me over some of the cookie rules, as I am using that as persistence. Thank you for helping me; much appreciation!!
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