title: URL masking? maybe?
body: <p>Have a .net webapp running on IIS.</p>
  
  <p>I have run across something I haven't had to really deal with before. we have partners or clients that have their own "pages" on our domain. currently the URL is www.mydomain.com/?code=partnercode, but for ease of use on business cards and such they want it to be more like www.mydomain.com/partnername and I am not sure how to do this. </p>
  
  <p>I know we can do something like the following in the htaccess in Apache</p>
  
  <pre><code>RewriteRule ^partnername$ index.php?code=partnerid [L]
  </code></pre>
  
  <p>I am wondering if there is some way to do this in the web.config? there has got to be something, but I am unsure where to look to find it. I have tried those online htaccess to web.config code converters and it failed miserably. The other thing is I would prefer to not have to change the partnerID that we already have in the DB.</p>
  
  <p>I found this on another question on this site but I don't think it will do what I need it to. It will change the URL in the browser one the user hits the page but I also want it to be accessible using the www.mydomain.com/partnername URL as well. </p>
  
  <pre><code>if ( $_SERVER['REQUEST_URI'] == '/index.php?code=partnerid') {
  echo '&lt;script type="text/javascript"&gt;window.history.pushState("", "", "/partnername");&lt;/script&gt;';
  }
  </code></pre>