1 | | That fixes the image links yeah, but now every other page shows 404 error, so really can't say what is going on. |
| 1 | ~~That fixes the image links yeah, but now every other page shows 404 error, so really can't say what is going on.~~ |
| 2 | |
| 3 | Finally managed to get it working with this: |
| 4 | {{{ |
| 5 | <?xml version="1.0" encoding="UTF-8"?> |
| 6 | <configuration> |
| 7 | <system.webServer> |
| 8 | <rewrite> |
| 9 | <rules> |
| 10 | <rule name="WordPress Rule" patternSyntax="Wildcard" stopProcessing="true"> |
| 11 | <match url="*"/> |
| 12 | <conditions> |
| 13 | <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/> |
| 14 | <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/> |
| 15 | </conditions> |
| 16 | <action type="Rewrite" url="index.php?page_id={R:0}"/> |
| 17 | </rule> |
| 18 | <rule name="wordpress" patternSyntax="Wildcard" stopProcessing="true"> |
| 19 | <match url=".*"/> |
| 20 | <conditions> |
| 21 | <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/> |
| 22 | <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/> |
| 23 | </conditions> |
| 24 | <action type="Rewrite" url="index.php"/> |
| 25 | </rule> |
| 26 | </rules> |
| 27 | </rewrite> |
| 28 | </system.webServer> |
| 29 | </configuration> |
| 30 | }}} |