web.config: Wordpress URL Rewrite

Wordpress URL Rewrite via web.config.

Voeg de volgende regels toe aan de web.config:

<rewrite>
<rules>
<rule name="WordPress Rule" 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="index.php?page_id={R:0}"/>
</rule>
</rules>
</rewrite>

Plaats deze tussen:



<system.webServer>