title: How to set up rewriting of URLs in website residing inner folder
body: <p>how can I map the default document file from folder. There I have a index.html file.</p>
  
  <pre><code>sitename.com —&gt; root/folder1
  sitename.com/url1 —&gt; root/folder2
  sitename.com/url2 —&gt; root/folder3 
  </code></pre>
  
  <p>While I configure as </p>
  
  <pre><code>&lt;rule name="rootFolder1" stopProcessing="true"&gt;
     &lt;match url="^.*$" /&gt;
     &lt;action type="Rewrite" url="/folder1/{R:0}" /&gt;
  &lt;/rule&gt;
  
  &lt;rule name="rootfolder2" stopProcessing="true"&gt;
     &lt;match url="^url1.*$" /&gt;
     &lt;action type="Rewrite" url="/folder2/" /&gt;
  &lt;/rule&gt;
  
  &lt;rule name="rootfolder3" stopProcessing="true"&gt;
     &lt;match url="^url2.*$" /&gt;
     &lt;action type="Rewrite" url="/folder3/" /&gt;
  &lt;/rule&gt;
  </code></pre>
  
  <p>The js file and css files are not working with this folder2 and folder3. They are taken from folder1. How can I solve this issue?</p>