Issues with Windows 2008 Hosting and Web.Config
-
Hi, I have my web.config file setup and its working for the most part. I am having trouble with a few small rewrites though.
(this is not using an htaccess file or the apache mod_rewrite language)
When someone submits a blank comment the “wp-comments-post.php” file gives a 500 error.
I also get the servers 404 error instead of the WordPress 404 page.
Everything else with the “pretty” links seems to be working just fine. Does anyone have a more expansive web.config file that covers everything? FYI, this problem exists whether the blog is the main site or in a sub folder.
Here is my web.config file:
<?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite> <rules> <rule name="WordPress" patternSyntax="Wildcard"> <match url="*" /> <conditions logicalGrouping="MatchAll"> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" pattern="" ignoreCase="false" /> <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" pattern="" ignoreCase="false" /> </conditions> <action type="Rewrite" url="blog/index.php" /> </rule> </rules> </rewrite> </system.webServer> </configuration>
Thanks!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Issues with Windows 2008 Hosting and Web.Config’ is closed to new replies.