Forum Discussion
lori_54451
Nimbostratus
Nov 12, 2007Irule http/https help
i have just inherited a website that has not SSL encryption. They heard how we do our encryption via BIGIP and they asked me if i could just redirect all of thier http requests to https. Programming apparently is not my forte, and i've tried variuos irules to redirect all http to https with variuos outcomes, non what i want. This seems like it should be a simple enough request. here is the latest irule i tested with. it is applied to a VIP on port 80
when HTTP_REQUEST {
if { [HTTP::uri] eq "/" and [HTTP::host] eq "www.lifecycle3d.com" } {
HTTP::redirect "https://www.lifecycle3d.com/maximo/webclient/login/login.jsp"
} else {
HTTP::redirect "https://[HTTP::host][HTTP::uri]"
}
}
any help would be appreciated
- Brian_69413
Nimbostratus
You were close...when HTTP_REQUEST { if { ([HTTP::uri] eq "/") and ([HTTP::host] eq "www.lifecycle3d.com") } { HTTP::redirect "https://www.lifecycle3d.com/maximo/webclient/login/login.jsp" } else { HTTP::redirect "https://[HTTP::host][HTTP::uri]" } }
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