Forum Discussion
Shohab_Baig_841
Nimbostratus
May 03, 2007Using I-rule to redirect traffic to https
Hi - We have approx. 20-25 pages on our website which needs to be secured. I am using following I-rule to do it. Following is a sample what I am writnng to make those pages secure:
when HTTP...
Deb_Allen_18
May 03, 2007Historic F5 Account
Check out this post for an example of solving the same problem using "findclass" instead of "switch". Not sure if it will improve performance, but it's worth trying:
http://devcentral.f5.com/Default.aspx?tabid=53&view=topic&postid=14031&ptarget=14072 (Click here)
Since you want to switch on the entire URI, instead of just the host & part of the URI, just replace these 2 lines:
set req "[HTTP::host]/[getfield [HTTP::uri] "/" 2]"
set redir [findclass $req $::TURL_List]
with this one:set req "[HTTP::host]/[getfield "/" 2]"
set redir [findclass [HTTP::uri] $::myRedirects " "]
HTH
/deb
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