Forums

Issues with Windows 2008 Hosting and Web.Config (4 posts)

  1. dbldutch21
    Member
    Posted 2 years ago #

    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!

  2. vpsdiscussions
    Member
    Posted 2 years ago #

    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.

  3. dbldutch21
    Member
    Posted 2 years ago #

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

  4. There should still be an error log. No idea where it is, though :(

Topic Closed

This topic has been closed to new replies.

About this Topic