title: IIS 7 deploy rewrite rules on a website
body: <p>I have to apply some redirect rules on IIS7/VS2008 and have question on how to deploy it. We have a website and not web application and hence most of other SO questions were not useful to me.</p>
  
  <p>in order to apply rule like below in website:</p>
  
  <pre><code>    &lt;rewrite&gt;
         &lt;rules&gt;
         &lt;clear /&gt;
            &lt;rule name="Redirect rule1 for Static404Redirects"&gt;
              &lt;match url=".*" /&gt;
              &lt;conditions logicalGrouping="MatchAll" trackAllCaptures="false"&gt;
                 &lt;add input="{Static404Redirects:{REQUEST_URI}}" pattern="(.+)" /&gt;
               &lt;/conditions&gt;
               &lt;action type="Redirect" url="{C:1}" appendQueryString="false" /&gt;
             &lt;/rule&gt;
          &lt;/rules&gt;
      &lt;/rewrite&gt;
  </code></pre>
  
  <ol>
  <li>in Bin folder there is no <em>websitename</em>.dll. just some other dlls like Ajaxtoolkit.</li>
  <li>Should it have any dll/assembly/GAC being a website?</li>
  <li>I can simply copy test server web.config to production w/o using any IIS UI for rules part and It should work.</li>
  <li>Also will the application need to be restart from IIS after web.config change? or new change comes into affect by itself on saving web.config?</li>
  </ol>
  
  <p>Is this correct? or will I need anything else to do? I am afraid will web.config change make any assembly changes/dll/version or any other changes that I should think of first? As I mentioned its website project and it doesnt even have VS2008 installed on Prod. Basically I want to be sure I know what am I doing.</p>
  
  <p>thank you!</p>