[go: up one dir, main page]

Menu

[r39]: / branches / stable / web.config  Maximize  Restore  History

Download this file

86 lines (81 with data), 4.9 kB

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <rewrite>
            <rules>
                <rule name="RedirectAdminPages" stopProcessing="true">
                    <match url="^admin/page\.php$" />
                    <conditions>
                        <add input="{REQUEST_METHOD}" negate="true" pattern="^POST$" />
                        <add input="{QUERY_STRING}" pattern="^identifier=([^=&amp;]+)&amp;component_id=([^=&amp;]+)$" />
                    </conditions>
                    <action type="Redirect" url="{C:1}/{C:2}" appendQueryString="false" redirectType="Permanent" />
                </rule>
                <rule name="RewriteAdminPages" stopProcessing="true">
                    <match url="^admin/([^/]+)/?$" />
                    <conditions>
                        <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                        <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
                    </conditions>
                    <action type="Rewrite" url="admin/page.php?identifier={R:1}" />
                </rule>
                
                <rule name="RedirectSectionPages" stopProcessing="true">
                    <match url="^page\.php$" />
                    <conditions>
                        <add input="{REQUEST_METHOD}" negate="true" pattern="^POST$" />
                        <add input="{QUERY_STRING}" pattern="^section=([^=&amp;]+)&amp;identifier=([^=&amp;]+)$" />
                    </conditions>
                    <action type="Redirect" url="{C:1}/{C:2}" appendQueryString="false" redirectType="Permanent" />
                </rule>
                <rule name="RewriteSectionPages" stopProcessing="true">
                    <match url="^([^/]+)/([^/]*)$" />
                    <conditions>
                        <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                        <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
                    </conditions>
                    <action type="Rewrite" url="page.php?section={R:1}&amp;identifier={R:2}" />
                </rule>
                
                <rule name="RedirectPages" stopProcessing="true">
                    <match url="^page\.php$" />
                    <conditions>
                        <add input="{REQUEST_METHOD}" pattern="^POST$" />
                        <add input="{QUERY_STRING}" pattern="^identifier=([^=&amp;]+)$" />
                    </conditions>
                    <action type="Redirect" url="{C:1}" appendQueryString="false" />
                </rule>
                <rule name="RewritePages" stopProcessing="true">
                    <match url="^([^/]+)/?$" />
                    <conditions>
                        <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                        <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
                    </conditions>
                    <action type="Rewrite" url="page.php?identifier={R:1}" />
                </rule>
                <rule name="RewriteActions" stopProcessing="true">
                    <match url="^action/([^/]+)/([^/]+)/?$" />
                    <conditions>
                        <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                        <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
                    </conditions>
                    <action type="Rewrite" url="action.php?component={R:1}&amp;action={R:2}" />
                </rule>
                
                <rule name="RewriteResources" stopProcessing="true">
                    <match url="^fakoli/.*?$" />
                    <conditions>
                        <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                        <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
                    </conditions>
                    <action type="Rewrite" url="resource.php?path={R:0}" appendQueryString="true" />
                </rule>
                
                <rule name="RewriteComponentResources" stopProcessing="true">
                    <match url="^components/([^/]+)/(.+)$" />
                    <conditions>
                        <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                        <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
                    </conditions>
                    <action type="Rewrite" url="resource.php?component={R:1}&amp;path={R:2}" />
                </rule>
            </rules>
        </rewrite>
    </system.webServer>
</configuration>