Forum Discussion
Frederic_Zelle2
Nimbostratus
Mar 17, 2006http to https redirect
Hi all
One of our customer has a problem with a simple iRule ( his first 9.x iRule )
when HTTP_REQUEST {
if { [HTTP::uri] ends_with "mysite.com/"} {
HTTP::redirect ...
JRahm
Admin
Mar 17, 2006Most likely you are looking for the host, not the uri. Also, if this rule is applied against a wildcard virtual and you are offloading ssl, you'll end up in a redirection loop. It should be fine if the virtual is specific to http, or you are not offloading ssl.
when HTTP_REQUEST {
if { [HTTP::host] ends_with "mysite.com"} {
HTTP::redirect "https://www.trans.mysite.com/TransitNetWeb/"
}
}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