I've narrowed this down to an issue between Rewrites and WebDAV. It isn't an issue with WebDAV or IIS version, but the fact that I have WordPress setup for this site on the new server and have enabled pretty URL's using IIS7's rewrite module. The web.config file for this site has the following code:
<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>
When I try to add a new file to the site via WebDAV it is executing the rewrite rule and writing the content of any file I publish to index.php, thus overwriting the content of index.php.
I thought I had configured everything properly for these two extensions (WebDAV and Rewrites), but obviously there is a conflict here. I would like to be able to modify my web.config files via WebDAV but at the same time, I would like WebDAV to NOT execute the Rewrite rules in my web.config files.
I'm sure there is a proper way to write "Don't apply rewrites to WebDAV requests" in the applicationHost.config file (for all sites on the server) or in this specific site's web.config file, but I can't seem to figure it out. Anyone know how to do that?
Thanks!
DaveE