When we use .htaccess for user friendly URL on OSclass CMS may not work on hosting with IIS Web Server.
To convert rules from .htaccess to web.config you can use import feature of the IIS URL Rewrite Module:
- go to IIS Manager
- click you site in the tree
- double-click URL Rewrite in the Feature View
- click Import Rules in the Actions panel
- paste your .htaccess rules into the Rewrite rules textbox and you’d see your converted rules below.
More info about this feature.
For instance your rules are converted into these ones:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Imported Rule 1" stopProcessing="true">
<match url="^index\.php$" ignoreCase="false" />
<action type="None" />
</rule>
<rule name="Imported Rule 2" stopProcessing="true">
<match url="." ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<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>
</rules>
</rewrite>
</system.webServer>
</configuration>