title: IIS6 301 redirect while preserving paths
body: <p>I'm having a problem with an IIS6 301 redirect. </p>
  
  <p>I've set up the following redirect for the domain <code>domain.com</code> to go to <code>www.domain.com$S$Q</code> under the Home Directory tab in Site Properties.</p>
  
  <p>If I navigate to <code>domain.com</code> I get redirected to <code>www.domain.com</code> with no problems. But if I go to <code>domain.com/dir</code> I get redirected to <code>www.domain.com/dir/dir</code>.</p>
  
  <p>What I'm doing wrong?</p>