Online .htaccess to Web.Config converter

Below we will see an automatic way to convert .htaccess to Web.Config.
It´s not necessary to download any application to convert .htaccess to Web.Config, just put the .htaccess code in the box below and click “convert to Web.Config” then the .htaccess will be automatically converted to Web.Config code.

Ex: RewriteRule ^index.html$ http://cbsa.com.br/ [R=301,L]

 

 

Default WordPress .htaccess equivalent in Web.config

<rewrite>
 <rules>
     <rule name="Main Rule" stopProcessing="true">
         <match url=".*" />
         <conditions logicalGrouping="MatchAll">
             <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
             <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
         </conditions>
         <action type="Rewrite" url="index.php/{R:0}" />
     </rule>
 </rules>
</rewrite>

Magento .htaccess equivalent in Web.config

<rule name="Imported Rule 1" stopProcessing="true">
  <match url=".*" ignoreCase="false" />
  <conditions>
	<add input="{URL}" pattern="^/(media|skin|js)/" ignoreCase="false" negate="true" />
	<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
	<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
  </conditions>
  <action type="Rewrite" url="index.php" />
</rule>