Forum Discussion
9 Replies
Sort By
- Michael_JenkinsCirrostratus
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_182827NimbostratusHi Romain , I want to know is it possible to do redirection from https:// to https://
- Brad_Parker_139Nacreous
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_182827NimbostratusThanks Brad But i want to know the redirection between HTTPS:// to HTTPS://
- nitassEmployeeyou 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_ParkerCirrus
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_182827NimbostratusThanks Brad But i want to know the redirection between HTTPS:// to HTTPS://
- nitassEmployeeyou 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"