View Complete Thread
  • Re: how to convert this .htaccess to web.config

    Jul 31, 2015 03:05 AM|Bharath A.G|LINK

    Hi,
    Please find the equivalent web.config rule below.

    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
    <system.webServer>
    <rewrite>
    <rules>
    <rule name="Imported Rule 1" stopProcessing="true">
    <match url="^notice\.htm" ignoreCase="false" />
    <action type="Rewrite" url="notice.php" />
    </rule>
    <rule name="Imported Rule 2" stopProcessing="true">
    <match url="^home\.html" ignoreCase="false" />
    <action type="Rewrite" url="index.php" />
    </rule>
    <rule name="Imported Rule 3" stopProcessing="true">
    <match url="^(.*)\.asp" ignoreCase="false" />
    <action type="Rewrite" url="index.php" />
    </rule>
    <rule name="Imported Rule 4" stopProcessing="true">
    <match url="^index\.html" ignoreCase="false" />
    <action type="Rewrite" url="index.php" />
    </rule>
    <rule name="Imported Rule 5" stopProcessing="true">
    <match url="^(.*)\.asp" ignoreCase="false" />
    <action type="Rewrite" url="{R:1}.php" />
    </rule>
    <rule name="Imported Rule 6" stopProcessing="true">
    <match url="^sig-(.*)-(.*)-(.*)\.sig" ignoreCase="false" />
    <action type="Rewrite" url="sig.php?n({R:1})t({R:2})f({R:3})" appendQueryString="false" />
    </rule>
    <rule name="Imported Rule 7" stopProcessing="true">
    <match url="^(.*)\.html" ignoreCase="false" />
    <action type="Rewrite" url="index.php?write={R:1}" appendQueryString="false" />
    </rule>
    </rules>
    </rewrite>
    </system.webServer>
    </configuration>

    Mark as answer if this helped youSmile