In IIS 7 , you can add below code in the Option “URL Rewrite” when you click on the domain, as the .htaccess will not work as it works for Linux servers:

 

===============

<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>

===============

By anup

Leave a Reply

Your email address will not be published. Required fields are marked *