title: IIS6 - How do I redirect users to another site for every page with a few exceptions?
body: <p>I have a website setup in IIS 6, let's say it's called <strong><a href="http://www.this.com" rel="nofollow noreferrer">http://www.this.com</a></strong>.</p>
  
  <p>I have setup a redirection for this website to <strong><a href="http://www.that.com" rel="nofollow noreferrer">http://www.that.com</a></strong> which maintains the directory structure and query parameters as follows:</p>
  
  <p><strong><a href="http://www.that.com" rel="nofollow noreferrer">http://www.that.com</a>$S$Q - using the option "The exact URL entered above"</strong></p>
  
  <p>This works great, whenever someone requests, for example:</p>
  
  <p><strong><a href="http://www.this.com/subfolder/page.aspx?Id=1" rel="nofollow noreferrer">http://www.this.com/subfolder/page.aspx?Id=1</a></strong></p>
  
  <p>then they end up at:</p>
  
  <p><strong><a href="http://www.that.com/subfolder/page.aspx?Id=1" rel="nofollow noreferrer">http://www.that.com/subfolder/page.aspx?Id=1</a></strong></p>
  
  <p>Now, I have one page, actually a handler, <strong><a href="http://www.this.com/image.axd" rel="nofollow noreferrer">http://www.this.com/image.axd</a></strong>, which I do not want to redirect.</p>
  
  <p>What is the syntax for that? I've read the <strong>Redirection Using Wildcards</strong> section <a href="http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/41c238b2-1188-488f-bf2d-464383b1bb08.mspx?mfr=true" rel="nofollow noreferrer">here</a>, but I can't work out how to do what seems to be something straight forward.</p>
  
  <p>Note that <strong>image.axd</strong> is a handler so I can't just "right click" on it and set the redirection properties as it doesn't physically exist.</p>
  
  <p>I also have a couple of other pages in subfolders which I do not want to redirect, for example:</p>
  
  <p><strong><a href="http://www.this.com/subfolder/donotredirectthispage.aspx" rel="nofollow noreferrer">http://www.this.com/subfolder/donotredirectthispage.aspx</a></strong></p>
  
  <p>Any help would be appreciated.</p>
  
  <p><strong>Edit:</strong> A couple of people have mentioned using ISAPI_Rewrite, for which I'm grateful, but I really don't want to introduce another complexity into the website configuration. IIS seems to imply I can acheive what I want using the ! and 0 through 9 variables. </p>
  
  <p>Is it really not possible to do this using IIS?</p>
  
  <p>My current workaround is to set the redirection properties on ALL folders and pages that I want to redirect except those I do not, but this is a management nightmare.</p>