Hey!
undzwar habe ich ein paar Rewrite Module geschrieben/generieren lassen vom lieben IIS.. jedoch springt nur die Erste Regel an.. nicht die 2. sieht da jemand den Wurm drinne? hehe
EDIT:\\ Da das Forum irgendwie die Datei zerschießt hier einmal als Pastebin.
https://pastebin.com/raw/jLHKzRQT
XML
<rewrite>
<rules>
<clear />
<rule name="RewriteUserFriendlyURL1" enabled="true" stopProcessing="true">
<match url="^([^/]+)/?$" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="index.php?page={R:1}" />
</rule>
<rule name="RewriteUserFriendlyURL2" stopProcessing="true">
<match url="^panel/dbstructure/([^/]+)/?$" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="panel/dbstructure?database={R:1}" />
</rule>
<rule name="RedirectUserFriendlyURL1" enabled="true" stopProcessing="true">
<match url="^index\.php$" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false">
<add input="{REQUEST_METHOD}" pattern="^POST$" negate="true" />
<add input="{QUERY_STRING}" pattern="^page=([^=&]+)$" />
</conditions>
<action type="Redirect" url="{C:1}" appendQueryString="false" />
</rule>
<rule name="RedirectUserFriendlyURL2" stopProcessing="true">
<match url="^panel/dbstructure$" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false">
<add input="{REQUEST_METHOD}" pattern="^POST$" negate="true" />
<add input="{QUERY_STRING}" pattern="^database=([^=&]+)$" />
</conditions>
<action type="Redirect" url="panel/dbstructure/{C:1}" appendQueryString="false" />
</rule>
</rules>
<outboundRules>
<preConditions>
<preCondition name="ResponseIsHtml1">
<add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" />
</preCondition>
</preConditions>
</outboundRules>
Alles anzeigen