RewriteCond %{HTTP_HOST} ^(www\.)?foo\.com [NC] RewriteRule ^/(.*)$ "/webapps/my_app/$1" [L] I want all requests that arrive destined for either foo.com or www.foo.com to be rewritten as (www.)foo.com/webapps/my_app/ I've been staring at it for a while now, but....no joy....tell me it's something stupid that I just can't see...please.... TIA