title: .htaccess IIS mod_rewrite
body: <p>I have a problem importing a .htaccess file in my IIS mod_rewrite module.
  3 errors appear.</p>
  
  <blockquote>
    <p>.htaccess`</p>
  </blockquote>
  
  <pre><code>Options +FollowSymLinks -Indexes -MultiViews AddDefaultCharset UTF-8
  
  &lt;IfModule mod_rewrite.c&gt; 
  RewriteEngine On
  
  ##If your NeoFrag directory is not at http root
  ##you need to replace "/" by the correct directory, for example "RewriteBase /neofrag/"
  RewriteBase /
  
  ##Allow direct access to specific directories
  #RewriteCond %{REQUEST_URI} ^/(dir1|dir2)/
  #RewriteRule .* - [L,QSA]
  
  RewriteCond %{REQUEST_URI} !^/backups/
  
  ##Allow direct access to specific files
  #RewriteCond %{REQUEST_FILENAME} /file1\.php [OR]
  #RewriteCond %{REQUEST_FILENAME} /file2\.php [OR]
  
  RewriteCond %{REQUEST_FILENAME} \.(png|jpg|jpeg|gif|swf|eot|svg|ttf|woff|woff2|zip)$
  RewriteCond %{REQUEST_FILENAME} -f
  RewriteRule .* - [L,QSA]
  
  RewriteCond %{REQUEST_URI} \.html
  RewriteRule (.*)\.html(.*) $1$2 [R=301,L]
  
  RewriteRule .* index.php [E=REMOTE_USER:%{HTTP:Authorization},L,QSA]
  &lt;/IfModule&gt;
  </code></pre>
  
  <blockquote>
    <p>XML View</p>
  </blockquote>
  
  <pre><code>    &lt;rewrite&gt;
    &lt;!--This directive was not converted because it is not supported by IIS: RewriteBase /.--&gt;
    &lt;rules&gt;
      &lt;rule name="Imported Rule 1" stopProcessing="true"&gt;
        &lt;match url=".*" ignoreCase="false" /&gt;
        &lt;conditions&gt;
          &lt;add input="{URL}" pattern="^/(dir1|dir2)/" ignoreCase="false" /&gt;
        &lt;/conditions&gt;
        &lt;action type="None" /&gt;
      &lt;/rule&gt;
      &lt;!--This rule was not converted because only some of the conditions are using the OR flag.--&gt;
      &lt;rule name="Imported Rule 3" stopProcessing="true"&gt;
        &lt;match url="(.*)\.html(.*)" ignoreCase="false" /&gt;
        &lt;conditions&gt;
          &lt;add input="{URL}" pattern="\.html" ignoreCase="false" /&gt;
        &lt;/conditions&gt;
        &lt;action type="Redirect" redirectType="Permanent" url="{R:1}{R:2}" /&gt;
      &lt;/rule&gt;
      &lt;!--The rule cannot be converted into an equivalent IIS format because of unsupported flags: E--&gt;
  </code></pre>
  
  <p></p>
  
  <p>Can some please help me on these 3 lines that are giving me an error?</p>
  
  <ul>
  <li><code>RewriteBase /</code></li>
  <li><code>RewriteRule .* - [L,QSA]</code></li>
  <li><code>RewriteRule .* index.php [E=REMOTE_USER:%{HTTP:Authorization},L,QSA]</code></li>
  </ul>