| 1 | <?xml version="1.0" encoding="UTF-8"?> |
|---|
| 2 | <configuration> |
|---|
| 3 | <system.webServer> |
|---|
| 4 | <rewrite> |
|---|
| 5 | <rules><rule name="wordpress - strip index.php" stopProcessing="false"><match url="^index.php/(.*)$"/><action type="Rewrite" url="{R:1}"/></rule><rule name="wordpress - 1" stopProcessing="true"><match url="^(.*/)?files/$"/><action type="Rewrite" url="index.php"/></rule><rule name="wordpress - 2" stopProcessing="true"><match url="^(.*/)?files/(.*)"/><conditions><add input="{REQUEST_URI}" negate="true" pattern=".*wp-content/plugins.*"/></conditions><action type="Rewrite" url="wp-includes/ms-files.php?file={R:2}" appendQueryString="false"/></rule><rule name="wordpress - 3" stopProcessing="true"><match url="^(.+)$"/><conditions><add input="{REQUEST_URI}" pattern="^.*/wp-admin$"/></conditions><action type="Redirect" url="{R:1}/" redirectType="Permanent"/></rule><rule name="wordpress - 4" stopProcessing="true"><match url="."/><conditions logicalGrouping="MatchAny"><add input="{REQUEST_FILENAME}" matchType="IsFile" pattern=""/><add input="{REQUEST_FILENAME}" matchType="IsDirectory" pattern=""/></conditions><action type="None"/></rule><rule name="wordpress - 5" stopProcessing="true"><match url="^([_0-9a-zA-Z-]+/)?(wp-.*)"/><action type="Rewrite" url="{R:2}"/></rule><rule name="wordpress - 6" stopProcessing="true"><match url="^([_0-9a-zA-Z-]+/)?(.*\.php)$"/><action type="Rewrite" url="{R:2}"/></rule><rule name="wordpress - 7" stopProcessing="true"><match url="."/><action type="Rewrite" url="index.php"/></rule><rule name="wordpress - strip index.php" stopProcessing="false"> |
|---|
| 6 | <match url="^index.php/(.*)$"/> |
|---|
| 7 | <action type="Rewrite" url="{R:1}"/> |
|---|
| 8 | </rule> |
|---|
| 9 | <rule name="wordpress - 1" stopProcessing="true"> |
|---|
| 10 | <match url="^(.*/)?files/$"/> |
|---|
| 11 | <action type="Rewrite" url="index.php"/> |
|---|
| 12 | </rule> |
|---|
| 13 | <rule name="wordpress - 2" stopProcessing="true"> |
|---|
| 14 | <match url="^(.*/)?files/(.*)"/> |
|---|
| 15 | <conditions> |
|---|
| 16 | <add input="{REQUEST_URI}" negate="true" pattern=".*wp-content/plugins.*"/> |
|---|
| 17 | </conditions> |
|---|
| 18 | <action type="Rewrite" url="wp-includes/ms-files.php?file={R:2}" appendQueryString="false"/> |
|---|
| 19 | </rule> |
|---|
| 20 | <rule name="wordpress - 3" stopProcessing="true"> |
|---|
| 21 | <match url="^(.+)$"/> |
|---|
| 22 | <conditions> |
|---|
| 23 | <add input="{REQUEST_URI}" pattern="^.*/wp-admin$"/> |
|---|
| 24 | </conditions> |
|---|
| 25 | <action type="Redirect" url="{R:1}/" redirectType="Permanent"/> |
|---|
| 26 | </rule> |
|---|
| 27 | <rule name="wordpress - 4" stopProcessing="true"> |
|---|
| 28 | <match url="."/> |
|---|
| 29 | <conditions logicalGrouping="MatchAny"> |
|---|
| 30 | <add input="{REQUEST_FILENAME}" matchType="IsFile" pattern=""/> |
|---|
| 31 | <add input="{REQUEST_FILENAME}" matchType="IsDirectory" pattern=""/> |
|---|
| 32 | </conditions> |
|---|
| 33 | <action type="None"/> |
|---|
| 34 | </rule> |
|---|
| 35 | <rule name="wordpress - 5" stopProcessing="true"> |
|---|
| 36 | <match url="^([_0-9a-zA-Z-]+/)?(wp-.*)"/> |
|---|
| 37 | <action type="Rewrite" url="{R:2}"/> |
|---|
| 38 | </rule> |
|---|
| 39 | <rule name="wordpress - 6" stopProcessing="true"> |
|---|
| 40 | <match url="^([_0-9a-zA-Z-]+/)?(.*\.php)$"/> |
|---|
| 41 | <action type="Rewrite" url="{R:2}"/> |
|---|
| 42 | </rule> |
|---|
| 43 | <rule name="wordpress - 7" stopProcessing="true"> |
|---|
| 44 | <match url="."/> |
|---|
| 45 | <action type="Rewrite" url="index.php"/> |
|---|
| 46 | </rule></rules> |
|---|
| 47 | </rewrite> |
|---|
| 48 | </system.webServer> |
|---|
| 49 | </configuration> |
|---|