g1smd - 10:11 pm on Oct 26, 2011 (gmt 0)
!^www..* -- the trailing unactioned .* just wastes processor cycles, literal periods should be escaped, use
^([^.]*).(net|net/) -- code has multiple issues: escape the literal period, hostname never ends in / here, you need $ end anchor, and [^.]* matches a blank, as in
http: // .net -- use
^([^.]+)\.net(:[0-9]+)?$ to also ensure you redirect requests with an appended port number.
#this is new and should rewrite example.com to www.example.com
-- no it does not. It is a redirect not a rewrite.
#this is what I already had and works.
-- the first rule should include the protocol and domain name in the rule target,
-- the second rule needs the [L] flag.