Forum Discussion
DM_5174
Mar 11, 2011Nimbostratus
independant from case-sensitive URI path httpS redirect
Hi All,
I was wondering if I could get some help from all of the i-rule gurus here.
Below is an i-rule we have that will 1) add "www" to the URI if a user forgets to put it in, and
2) if...
Chris_Miller
Mar 11, 2011Altostratus
Try this:
when HTTP_REQUEST {
if { [HTTP::host] eq "abc.test.com" } {
HTTP::redirect "http://www.abc.test.com[HTTP::uri]"
} elseif { [string tolower [HTTP::uri]] starts_with "/mgt/portal/login" } {
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