Hello all. I've been messing with this for way too long and I may have gone officially insane. I've been trying to use 'pretty' permalinks. When I insert the code that WordPress supplies after I update the permalink structure into my web.config file, I get a 500 (internal server) error. When I insert the code given in the "Using Permalinks" WordPress codex, I get a 404 error when I try to access my pages. Either way, it's a no-go. My brain hurts. Can anyone tell me how to make this work? Pretty please? :)
If it helps, the code given when I update the permalinks structure is as follows:
<configuration>
<system.webServer>
<rewrite>
<rules>
<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>
This is the one that causes the 500 (internal server) error.
This is the code given in the referenced WordPress codex, the one that causes the 404 error:
<rewrite>
<rules>
<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/{R:0}" />
</rule>
</rules>
</rewrite>