Forum Discussion
HTTPS Redirect for a specific URL, URI
Thank you Kevin, it worked. Now I have one more page /feedback and I tried this code but doesn't work: HTTP VIP: when HTTP_REQUEST { if { [string tolower [HTTP::uri]] starts_with "/contact-us" } {HTTP::redirect "https://[HTTP::host][HTTP::uri]" } elseif { [string tolower [HTTP::uri]] starts_with "/feedback" } { HTTP::redirect "https://[HTTP::host][HTTP::uri]" } }
HTTPS VIP: when HTTP_REQUEST { if { not ( [string tolower [HTTP::uri]] starts_with "/contact-us" ) } {HTTP::redirect "http://[HTTP::host][HTTP::uri]" } elseif { [string tolower [HTTP::uri]] starts_with "/feedback" } { HTTP::redirect "http://[HTTP::host][HTTP::uri]" } } pl. assist.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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