web.config – all works, except site root
-
First of all, I don’t speak web.config. So I have to rely on the examples I find on the internet and just try. This seems to be the standard web.config to use:
<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” />
</rule>
</rules>
</rewrite>I have several WP sites on the same dedicated server and all sites work with this web.config, except one. When you go to http://www.mysite.com , you see a 404 [1]. All other links work, including http://www.mysite.com/index.php. It’s driving me mad because I can’t see the difference with the other sites on the same server.
[1] custom 404
The topic ‘web.config – all works, except site root’ is closed to new replies.