Transform HTACCESS into Web.Config [closed]

-3

I would like to ask for help exporting this HTACCESS (linux) to Web.Config / p>

RewriteEngine on
RewriteCond %{REQUEST_URI} !^/admincp/$ [NC]
RewriteRule ^([a-zA-Z0-9]+)/([a-zA-Z0-9]+)/([a-zA-Z0-9\/]+)/?$ index.php?page=$1&subpage=$2&request=$3 [QSA]
RewriteRule ^([a-zA-Z0-9]+)/([a-zA-Z0-9]+)/?$ index.php?page=$1&subpage=$2 [QSA]
RewriteRule ^([a-zA-Z0-9]+)/?$ index.php?page=$1 [QSA]

I always mistake something, and I'm passing anger already, could anyone help me?

    
asked by anonymous 05.09.2017 / 12:15

1 answer

0

Well, I'm going to post the solution if it helps anyone, my method was this.

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <rewrite>
            <rules>
                <rule name="rule 1m">
                    <match url="^([a-zA-Z0-9]+)/([a-zA-Z0-9]+)/([a-zA-Z0-9\/]+)/?$"  />
                    <action type="Rewrite" url="/index.php?page={R:1}&amp;subpage={R:2}&amp;request={R:3}"  appendQueryString="true" />
                </rule>
                <rule name="rule 2m">
                    <match url="^([a-zA-Z0-9]+)/([a-zA-Z0-9]+)/?$"  />
                    <action type="Rewrite" url="/index.php?page={R:1}&amp;subpage={R:2}"  appendQueryString="true" />
                </rule>
                <rule name="rule 3m">
                    <match url="^([a-zA-Z0-9]+)/?$"  />
                    <action type="Rewrite" url="/index.php?page={R:1}"  appendQueryString="true" />
                </rule>
            </rules>
        </rewrite>
    </system.webServer>
</configuration>

Give thanks to those who at least read the question!

    
07.09.2017 / 00:31