Default WordPress web.config file, with permalinks
Posted by Anonymous on May Tue 29th 11:40 PM - Never Expires| View : 39Syntax: ASP
1073 characters | 30 lines | 1.05 KB
- <configuration>
- <system.webServer>
- <rewrite>
- <rules>
- <rule name="CanonicalHostNameRule2" stopProcessing="true">
- <match url="(.*)" />
- <conditions>
- <add input="{HTTP_HOST}" pattern="^domain\.com$" />
- </conditions>
- <action type="Redirect" url="http://www.domain.com/{R:1}" />
- </rule>
- <rule name="CanonicalHostNameRule1" stopProcessing="true">
- <match url="^(\w*/)?index\.php" />
- <conditions>
- <add input="{HTTP_HOST}" pattern="domain\.com$" />
- </conditions>
- <action type="Redirect" url="http://www.domain.com/{R:1}" />
- </rule>
- <rule name="wordpress" patternSyntax="Wildcard">
- <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" />
- </rule>
- </rules>
- </rewrite>
- </system.webServer>
- </configuration>
