Ich weiss, dass die htaccess unter Windows nicht angesprochen wird. Dafür ist die web.config zuständig.
Und dort habe ich die Rewrite Befehle portiert, soweit ich das als Laie kann.
Ich würde nur gern wissen, welche Zeilen in der htacces für die Vanity Umleitung zuständig sind.
Was ich weiss, dass unter Windows wohl die Query Strings anders behandelt werden, d.h. alles ab dem ? in der URL wird nicht einfach so als URL Name behandelt.
Das scheint unter Apache einfacher zu funktionieren. Ich vermute, dass die letzte Zeile in der htaccess für die Umleitung sorgt - in der web.config wäre das unter Rule Nr. 5.
Hier mal ein Auszug aus meiner web.config mit den portierten Rewrite Befehlen in der gleichen Reihenfolge wie in der htaccess.
Die letzte Zeile ist fehlerhaft, da Windows wohl alles nach dem ? nicht als URL Namen wertet.
Vielleicht hat ja jemand hier im Forum ein wenig Erfahrung mit ISS und den Rewrite Befehlen dazu.
<rewrite>
<!--This directive was not converted because it is not supported by IIS: RewriteBase /_dev/.-->
<rules>
<rule name="Imported Rule 1" stopProcessing="true">
<match url="^(.*)" ignoreCase="false" />
<conditions>
<add input="{HTTP_HOST}" pattern="^skiroller-store.com$" ignoreCase="false" negate="true" />
</conditions>
<action type="Redirect" redirectType="Found" url="https://skiroller-store.com/_abc/{R:1}" />
</rule>
<rule name="Imported Rule 2" stopProcessing="true">
<match url="^(.*)" ignoreCase="false" />
<conditions>
<add input="{HTTPS}" pattern="^on$" ignoreCase="false" negate="true" />
<add input="{THE_REQUEST}" pattern="^GET" ignoreCase="false" />
<add input="{URL}" pattern="^/_abc/assets/" ignoreCase="false" negate="true" />
<add input="{URL}" pattern="^/_abc/classes/" ignoreCase="false" negate="true" />
<add input="{URL}" pattern="^/_abc/images/" ignoreCase="false" negate="true" />
<add input="{URL}" pattern="^/_abc/js/" ignoreCase="false" negate="true" />
<add input="{URL}" pattern="^/_abc/rest/" ignoreCase="false" negate="true" />
<add input="{URL}" pattern="^/_abc/store/" ignoreCase="false" negate="true" />
</conditions>
<action type="Redirect" redirectType="Found" url="https://{SERVER_NAME}/_abc/{R:1}" />
</rule>
<rule name="Imported Rule 3" stopProcessing="true">
<match url="^sitemap\.xml$" ignoreCase="false" />
<action type="Rewrite" url="/_abc/sitemap.xml.php" />
</rule>
<rule name="Imported Rule 4" stopProcessing="true">
<match url="^robots\.txt$" ignoreCase="false" />
<action type="Rewrite" url="/_abc/robots.txt.php" />
</rule>
<rule name="Imported Rule 5" stopProcessing="true">
<match url="^(.*)$" ignoreCase="false" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}/index.html" matchType="IsFile" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}/index.php" matchType="IsFile" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="/_abc/index.php?ngq=/{R:1}" appendQueryString="true" />
</rule>
</rules>
</rewrite>