URL Rewrite on IIS

IIS URL Rewrite Module: http://www.iis.net/downloads/microsoft/url-rewrite

Example:

URL example: sman/merchant

Rewrite URL: sman/index.php/merchant

<configuration>
    <system.webServer>
        <rewrite>
            <rules>
                <rule name="Rewrite to article.aspx">
                    <match url="^(sman)\/(?!index\.php|images|robots\.txt|assets|uploads|$)(.+|$)" />
                    <action type="Rewrite" url="{R:1}/index.php/{R:2}" />
                </rule>
            </rules>
        </rewrite>
    </system.webServer>
</configuration>

Import from Apache rules:

https://docs.microsoft.com/en-us/iis/extensions/url-rewrite-module/importing-apache-modrewrite-rules

Reference:

  1. http://www.cnblogs.com/lixyvip/archive/2009/03/02/1401651.html

Snaps:

rewrite_1

 

 

rewrite_1

^(wsdc)\/(?!index\.php|images|robots\.txt|assets|uploads|$)(.+|$)

./{R:1}/index.php/{R:2}