Forum Discussion

Joe_Pipitone's avatar
Icon for Nimbostratus rankNimbostratus
Nov 09, 2010

Catch www and domain

I have an iRule that tries to catch both a uri as well as a hostname, however it doesn't seem to want to catch the, it only catches it without the www.

I tried using a wildcard (*) in front of the, however it just triggers an error.

Anyone know what I may be missing? Here's the rule:


if {[HTTP::uri] starts_with "/presentations" } {

HTTP::redirect ""

} elseif {[string tolower [HTTP::host]] eq ""}{

HTTP::redirect ""