I'm having an interesting issue with the migration to wordpress 3.1.1 multisite and the url rewrite rules. the index.php routing, as well as the ms-files.php?file= rules are failing across the board. The ROOT site has functionality thats working, when you route the permalinks through index.php. (edit: This is also prevalent in the network sites, From what I can see Rule 7 is the culprit on failure here.)
The rule for media (rule2) is failing as well. The generated link is pulling back a "oops cannot be found" 404 style error.
Everything looked proper in the rules section, appended below:
<rule name="WordPress Rule 1" stopProcessing="true">
<match url="^index\.php$" ignoreCase="false" />
<action type="None" />
</rule>
<rule name="WordPress Rule 2" stopProcessing="true">
<match url="^([_0-9a-zA-Z-]+/)?files/(.+)" ignoreCase="false" />
<action type="Rewrite" url="wp-includes/ms-files.php?file={R:2}" appendQueryString="false" />
</rule>
<rule name="WordPress Rule 3" stopProcessing="true">
<match url="^([_0-9a-zA-Z-]+/)?wp-admin$" ignoreCase="false" />
<action type="Redirect" url="{R:1}wp-admin/" redirectType="Permanent" />
</rule>
<rule name="WordPress Rule 4" stopProcessing="true">
<match url="^" ignoreCase="false" />
<conditions logicalGrouping="MatchAny">
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" />
</conditions>
<action type="None" />
</rule>
<rule name="WordPress Rule 5" stopProcessing="true">
<match url="^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*)" ignoreCase="false" />
<action type="Rewrite" url="{R:1}" />
</rule>
<rule name="WordPress Rule 6" stopProcessing="true">
<match url="^([_0-9a-zA-Z-]+/)?(.*\.php)$" ignoreCase="false" />
<action type="Rewrite" url="{R:2}" />
</rule>
<rule name="WordPress Rule 7" stopProcessing="true">
<match url="." ignoreCase="false" />
<action type="Rewrite" url="index.php" />
</rule>
You can view the exhibited behavior by vising: UB News Staging site 1 UB News Staging Site 2
Notice on staging site 2 how the media does not function correctly. However when you visit the following link, the format is working and the photo is displaying like it should. http://staging.business-school-online.com/news/wp-includes/ms-files.php?file=2011/04/online-education-300x198.jpg
edit: The WP generated link is http://staging.business-school-online.com/news/files/2011/04/online-education-300x198.jpg
Can someone offer some insight into the failing url-rewrite rule? according to regex buddy the structure is correct.