Web.config redirect

Redirect URLs to certain page passing its name.
This is web.config from one of my websites that is doing that

CodeFunctionName
What is this?

Public

Tested

Original Work
<configuration >
<system.web >
    <compilation debug="true" strict="false" explicit="true" targetFramework="4.6.1"/ >
    <httpRuntime targetFramework="4.6.1"/ >
    <customErrors mode="Off"/ >
</system.web >
    <system.webServer >
    <security >
            <requestFiltering allowDoubleEscaping="true" / >
    </security >
    <rewrite >
            <rules >
                <rule name="ANmars1" stopProcessing="true" >
                    <match url="^(Pages/.*)$" ignoreCase="false" / >
                    <conditions >
                            <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="/Pages/Default-Embed.asp?p={R:1}" appendQueryString="true" / >
                </rule >
                <rule name="ANmarsUsers" stopProcessing="true" >
                    <match url="^(U/.*)$" ignoreCase="false" / >
                    <conditions >
                            <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="/Pages/Default-Embed.asp?p={R:1}" appendQueryString="true" / >
                </rule >
                <rule name="ANmars2" stopProcessing="true" >
                    <match url="^(T/.*)$" ignoreCase="false" / >
                    <conditions >
                            <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="/Pages/Default-Embed.asp?t2={R:1}" appendQueryString="true" / >
                </rule >
                <rule name="ANmarsCmd" stopProcessing="true" >
                    <match url="^(Cmd/.*)$" ignoreCase="false" / >
                    <conditions >
                            <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="/Pages/Parts-Cmds.asp" appendQueryString="true" / >
                </rule >
                <rule name="ANmarsAll" stopProcessing="true" >
                    <match url="^(.*)$" ignoreCase="false" / >
                    <conditions >
                            <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="/Pages/Default-Embed.asp?a={R:1}" appendQueryString="true" / >
                </rule >
            </rules >
    </rewrite >
</system.webServer >


</configuration >

Views 126

Downloads 58

CodeID
DB ID