Forum Discussion
Kesh_152548
Nimbostratus
May 01, 2014HTTPS redirects
Hello,
I am a complete novice as far as f5 devices are concerned, and I need to achieve the following:
Any traffic to http://testssl.mydomainmail.co.uk gets redirected to https://testssl.mydomai...
Kevin_Stewart
Employee
May 21, 2014Because everything is getting redirected to the same HTTPS URL, you could probably simplify this by simply evaluating the URI.
when HTTP_REQUEST {
if { [HTTP::uri] equals "/" } {
HTTP::redirect "https://testssl.communigator.co.uk/login"
} else {
HTTP::redirect "https://testssl.communigator.co.uk[HTTP::uri]"
}
}
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