mod_rewrite...shouldn't be voodoo, but my eyes are burnin....

Discussion in 'Apache' started by ricke_44, Nov 18, 2011.

  1. #1
    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
     
    ricke_44, Nov 18, 2011 IP