WordPress.org

Ready to get started?Download WordPress

Forums

404 on Windows/IIS with ISAPI_Rewrite simply won't work (7 posts)

  1. articulategabe
    Member
    Posted 7 years ago #

    I'm at a loss here. My WordPress blog runs fine on my Windows/IIS server with the standard set of ISAPI_Rewrite rules (Articulate Blog).

    The big problem I have now, though, is that my 404 page in my blog simply doesn't work, even though 404.php exists in my custom theme (under \wp-content\themes\<theme name>). As you can see from the below, it simply returns a page that looks like no search results were found:

    http://www.articulate.com/blog/nothinghere

    The difference, though, is that it's really NOT the "Sorry, no posts matched your criteria" page. Compare the above with this:

    http://www.articulate.com/blog/?s=theeee&x=0&y=0

    This is really important for me to get fixed both because it would be great to have a 404 display when it should (as the rest of my site does), but also because I have a Google Mini, and it's indexing non-existent pages under my /blog directory since WordPress is not properly returning the 404 page, and thus, a header status code of 404.

    So if I can get the actual 404 page to return properly, adding the PHP code to return the proper status code is easy enough:

    <?php header("HTTP/1.1 404 Not Found"); ?>

    I've also posted a comment on a related blog post here.

    I'm running Windows Server 2003.

    Do I need to add a new rewrite rule to account for 404s?? Make some change in WordPress? I'm leaning toward this being a WP issue since Helicon Tech says the 404 is not specified in ISAPI_Rewrite rules and I have 404 error handling for non-WordPress content specified correctly in IIS, so that leaves WP.

    Any suggestions??

    Thanks in advance!

  2. articulategabe
    Member
    Posted 7 years ago #

    Plugin that solves this issue:

    http://wordpress.org/extend/plugins/permalink-validator/

    I've been using it for several weeks now with great success.

  3. dolemite
    Member
    Posted 7 years ago #

    FYI.

    This plug-in does not work with WordPress 2.2. If used with firefox, an error message appears stating that the request can't ever be finished.

    It would be a great benefit if someone could come up with a definitive doc on how to get the SEO friendly permalinks working.

  4. snakefoot
    Member
    Posted 7 years ago #

    Hi dolemite

    I have updated the plugin to version 0.2, so it now can handle a static frontpage.

    If the updated version doesn't solve your problem, then post your permalink-structure, and I will try to re-produce your problem

    -Rolf

  5. Craig3
    Member
    Posted 7 years ago #

    I tried Permalink Validator v0.3 on WordPress 2.2 with IIS Mod-Rewrite pro and Clean Permalinks and everything worked perfect!

  6. articulategabe
    Member
    Posted 6 years ago #

    The same version of the plugin I'm using on WP 2.1 (Permalink Validator 0.1) also works fine for me on WP 2.2.

  7. sugarrae
    Member
    Posted 6 years ago #

    The problem is that permalink validator serves a shiny page that SAYS it is a 404, but when testing the server header, it is actually showing a 200 OK code to the engines. It can say 404 to the user all it wants, but unless it serves a 404 code to the engines as well, it doesn't work 100% - anyone know how to fix? Version 2.2.2

Topic Closed

This topic has been closed to new replies.

About this Topic