Forum Discussion
Jeff_Bull_42197
Sep 05, 2012Nimbostratus
HTTPS Redirect
Looking to setup an iRule that will allow users calling one of our URL's to be redirected to the same URL, but with a specific URI appended. I don't know how to write the iRule syntax, so any help wo...
Richard__Harlan
Sep 05, 2012Historic F5 Account
the following iRUle should be able to do what you want
when HTTP_REQUEST {
HTTP::redirect "https://[HTTP::host]/User/MobileSiteHome/Start"
}
If you only want to send to the URI if the if the host equals m.mysite.org then something like the following
when HTTP_REQUEST {
if { [HTTP::host] equals "m.mysite.org" } {
HTTP::redirect "https://[HTTP::host]/User/MobileSiteHome/Start"
} else {
HTTP::redirect "https://[HTTP::host]"
}
}
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