Support » Fixing WordPress » weird 404 instead of 200 problem

  • loak

    (@loak)


    Hi all,

    I have a strange problem:
    All the pages returned by my server throw 404 errors when I “GET /(…) HTTP/1.0” them…

    using validator.w3.org site.com/ doesn’t work (404) but site.com/index.php works.

    You can try it at:
    http://agepoly.epfl.ch/agepoly2/wordpress

    I have no idea what’s messing with the HTTP codes… Anybody has an idea?

Viewing 4 replies - 1 through 4 (of 4 total)
  • loak

    (@loak)

    Using curl to get the headers the problem is different. It works fine inside the wordpress directory.

    But the problem still occurs when trying to get the parent directory without specifying index.php. Weird…

    My parent index is:
    require(‘./wordpress/wp-blog-header.php’);
    –blah blah blah–
    get_sidebar();
    get_footer();

    [root@agepoly agepoly2]# curl -I http://agepoly.epfl.ch/agepoly2/
    HTTP/1.1 404 Not Found
    Date: Thu, 12 Oct 2006 07:32:48 GMT
    Server: Apache
    X-Powered-By: PHP/4.3.11
    X-Pingback: http://agepoly.epfl.ch/agepoly2/wordpress/xmlrpc.php
    Status: 404 Not Found
    Content-Type: text/html; charset=UTF-8

    [root@agepoly agepoly2]# curl -I http://agepoly.epfl.ch/agepoly2/index.php
    HTTP/1.1 200 OK
    Date: Thu, 12 Oct 2006 07:32:56 GMT
    Server: Apache
    X-Powered-By: PHP/4.3.11
    X-Pingback: http://agepoly.epfl.ch/agepoly2/wordpress/xmlrpc.php
    Status: 200 OK
    Content-Type: text/html; charset=UTF-8

    loak

    (@loak)

    update: it does work when i disable permalinks in WordPress and leave .htaccess untouched (with the rewrites).

    So the problem seems to be in the way wordpress handles a request ending with a / when permalinks are enabled. any idea how i could fix this?

    loak

    (@loak)

    *bump*

    loak

    (@loak)

    *bump again*

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘weird 404 instead of 200 problem’ is closed to new replies.