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 "https://www.trans.mysite.com/TransitNetWeb/"
}
}
To me everything looks fine but I am unfortunately unable to test it on a BIGIP right now
Does anything look wrong ?
I'm wondering about some blank space issue
Any help appreciated
TIA
Fred
- JRahm
Admin
Most 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/" } }
- Frederic_Zelle2
Nimbostratus
Thanks a lot !!!
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