Forum Discussion
Allwin
Nimbostratus
Dec 21, 2020Server http response to be Redirected to HTTPS
HI,
I'm trying to redirect a http response from the backend server to https via iRule, but its not working.
Please check if the below iRule is correct.
when HTTP_RESPONSE {
if { [TCP::server_port] contains "80"} {
HTTP::redirect "https://www.abcxyz.com/"
}
}
2 Replies
Sort By
- jaikumar_f5
Noctilucent
Any reason why you are not using the defaut http2https redirect Irule.
- Allwin
Nimbostratus
Hi Jai,
I was not sure if the default one would work for a HTTP_RESPONSE.
Does the default redirect work as expected similar to HTTP REQUEST?
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