title: htaccess redirect subdirectory to subdomain pointing to the same location
body: <p>Yeah .. yet another url rewrite question. Sorry but the solutions I tried didn't work and gave me infinite redirect loops :(</p>
  
  <p>So, we have a directory on 
    example.com/interface/...
  and want to redirect it to 
    service.example.com/interface/... (including all folders and files in it)</p>
  
  <p>its physically the same location but example.com will move to another server soon and then interface.example.com will point to the old(current) server
  Right now example.com and service.example.com point to the same web home directory (yay for duplicate content huh)</p>
  
  <p>Also .. we have a rule in place</p>
  
  <pre><code>RewriteCond %{HTTP_HOST} !^www\.example\.com$
  RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]
  </code></pre>
  
  <p>and I suspect this one is somehow, together with the other rules I tried, causing the infinite loop error because www.service.example.com does not exist (and shouldnt)</p>
  
  <p>I suppose its rather simple but I just can't get my head around rewrite stuff :(</p>