Forum Discussion
Siddiqui_182827
Nimbostratus
Jan 15, 2015HTTPS to HTTPS redirection
How to do redirection from HTTPS to HTTPS in F5 LTM 10.2.4
9 Replies
- Michael_Jenkins
Cirrostratus
Did you mean to say HTTPS to HTTPS? Can you clarify your question a little bit more to give a better context? Thanks!
- Romain_DA_ROIT_
Nimbostratus
Hi,
I don't understand your question. I think you want to do HTTP to HTTPS redirection ?
Romain
- Siddiqui_182827
Nimbostratus
Hi Romain , I want to know is it possible to do redirection from https:// to https://
- Brad_Parker_139
Nacreous
when HTTP_REQUEST { set my_loc "https://[HTTP::host][HTTP::uri]" TCP::respond "HTTP/1.1 301 Moved Permanently\r\nLocation: $my_loc\r\nConnection: close\r\nContent-Length: 0\r\n\r\n" TCP::close }- Siddiqui_182827
Nimbostratus
Thanks Brad But i want to know the redirection between HTTPS:// to HTTPS:// - nitass
Employee
you just use https HTTP::redirect command. HTTP::redirect https://clouddocs.f5.com/api/irules/HTTP__redirect.html e.g. HTTP::redirect "https://www.google.com"
- Brad_Parker
Cirrus
when HTTP_REQUEST { set my_loc "https://[HTTP::host][HTTP::uri]" TCP::respond "HTTP/1.1 301 Moved Permanently\r\nLocation: $my_loc\r\nConnection: close\r\nContent-Length: 0\r\n\r\n" TCP::close }- Siddiqui_182827
Nimbostratus
Thanks Brad But i want to know the redirection between HTTPS:// to HTTPS:// - nitass
Employee
you just use https HTTP::redirect command. HTTP::redirect https://devcentral.f5.com/wiki/iRules.HTTP__redirect.ashx e.g. HTTP::redirect "https://www.google.com"
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