title: IIS server redirect issue behind Cloudfront
body: <p>I've got an asp.net website (let's say <a href="http://cdn.mysite.com" rel="nofollow">http://cdn.mysite.com</a>) hosted on IIS and sat behind an Amazon CloudFront Distribution (using a CNAME to access the cdn.* url above, let's say the distribution URL is <a href="http://mysite.cloudfront.net" rel="nofollow">http://mysite.cloudfront.net</a>).</p>
  
  <p>If a user hits a folder/directory url without a trailing slash, the server will issue a redirect to the origin cdn url, so if a user navigates to <a href="http://mysite.cloudfront.net/thanks" rel="nofollow">http://mysite.cloudfront.net/thanks</a>, they'll end up on <a href="http://cdn.mysite.com/thanks/" rel="nofollow">http://cdn.mysite.com/thanks/</a> instead of <a href="http://mysite.cloudfront.net/thanks/" rel="nofollow">http://mysite.cloudfront.net/thanks/</a></p>
  
  <p>Any suggestions of how to fix this in asp.net / iis / cloudfront?</p>