Kategorien
web.config: Wordpress-URL-Rewrite
Wordpress URL Rewrite über web.config.
Ersetzen Sie web.config durch die folgenden Zeilen.
| <?xml version="1.0" encoding="UTF-8"?> | |
| <Konfiguration> | |
| <system.webServer | |
| < Umschreiben | |
| <rule name="html entfernen " stopProcessing="true"> | |
| <match url= "( .*).html$ " /> | |
| <Bedingungen> | |
| < add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> | |
| < add input="{REQUEST_FILENAME} " matchType="IsDirectory" negate="true" /> | |
| </conditions> | |
| <action type="Redirect" redirectType="Permanent" url= "{R :1}" /> | |
| </rule> | |
| <rule name="Main Rule " stopProcessing="true"> | |
| <match url= ".* "/> | |
| <conditions logicalGrouping="MatchAll"> | |
| < add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/> | |
| < add input="{REQUEST_FILENAME} " matchType="IsDirectory" negate="true"/> | |
| </conditions> | |
| <action type="Rewrite"url= "index.php"/> | |
| </rule> | |
| <rule name="wordpress" patternSyntax="Wildcard"> | |
| <match url= "* "/> | |
| <Bedingungen> | |
| < add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/> | |
| < add input="{REQUEST_FILENAME} " matchType="IsDirectory" negate="true"/> | |
| </conditions> | |
| <action type="Rewrite"url= "index.php"/> | |
| </rule> | |
| </Regeln> | |
| </rewrite> | |
| </system.webServer> | |
| </konfiguration> |