Forum Discussion
Glenn_Ruffus_10
Nimbostratus
Dec 18, 2007Force "www." redirect if missing from HTTPS requests
I am looking for help in writing an iRule that will be used on an HTTPS virtual server. I would like the LTM to examine the HTTP request and if the URL does not include "www." then redirect the brows...
hoolio
Cirrostratus
Dec 20, 2007Hi Glenn,
The exclamation point in the condition check negates the test. So it's looking for host values not starting with "www.". If you want to make it more clear you could replace the ! with 'not':
if { not ( [HTTP::host] starts_with "www." ) } {
Aaron
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