title: Translating an Apache .htaccess file to an IIS web.config
body: <p>I developed an application on my local using PHP, MySQL and Apache and it has a .htaccess file containing this:</p>
  
  <pre><code>#Setting the default handler.
    DirectoryIndex home.do
  
  &lt;IfModule mod_mime.c&gt;
    #Supporting .do extensions    
       AddType application/x-httpd-php .do
  &lt;/IfModule&gt;
  
  &lt;IfModule mod_rewrite.c&gt;
    #Removing .do file extension if necessary
       RewriteEngine on
       RewriteCond %{REQUEST_FILENAME} !-d
       RewriteCond %{REQUEST_FILENAME}\.do -f
       RewriteRule ^(.*)$ $1.do
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>But I informed that my customer's web server is IIS and I have to use a web.config file instead of .htaccess. Can anyone direct me through this, please?</p>