• dbldutch21

    (@dbldutch21)


    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)
  • vpsdiscussions

    (@vpsdiscussions)

    Please check in the apache error logs for exact problem. If you have a root access of server then the default location of Apache error logs is /usr/local/apache/logs/error_logs. If you do not have a root access of server and using cPanel control panel to manage your domain then there is a option “Error logs” from where you can check the same thing.

    Thread Starter dbldutch21

    (@dbldutch21)

    Its on IIS not Apache. That is why I’m using web.config instead of htaccess.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    There should still be an error log. No idea where it is, though ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Issues with Windows 2008 Hosting and Web.Config’ is closed to new replies.