gosman

msg:4361638 | 10:13 pm on Sep 12, 2011 (gmt 0) |
Anyone?
|
g1smd

msg:4361650 | 10:45 pm on Sep 12, 2011 (gmt 0) |
Use: ^((secure|www)\.example\.com)?$
|
lucy24

msg:4361663 | 12:01 am on Sep 13, 2011 (gmt 0) |
Be careful with the OR. To achieve host IS NEITHER {firstblahblah} NOR {secondblahblah} you need host IS NOT {firstblahblah} AND IS NOT {secondblahblah} not host IS NOT {firstblahblah} OR IS NOT {secondblahblah} g1's version collapses both into a single statement except that, er, I think his keyboard choked on the !^ sequence again. Tangential query: Are there situations where the HTTP_HOST is nothing?
|
g1smd

msg:4361669 | 12:21 am on Sep 13, 2011 (gmt 0) |
Err, yeah. I told you that was my most common code typo.
!^((secure|www)\.example\.com)?$ HTTP_HOST is blank when it is a pure HTTP/1.0 request. HTTP/1.0 didn't include the HOST header.
|
gosman

msg:4361817 | 9:21 am on Sep 13, 2011 (gmt 0) |
Thanks guys Worked a treat
|
|