WordPress.org

Ready to get started?Download WordPress

Forums

weird 404 instead of 200 problem (5 posts)

  1. loak
    Member
    Posted 7 years ago #

    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?

  2. loak
    Member
    Posted 7 years ago #

    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

  3. loak
    Member
    Posted 7 years ago #

    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?

  4. loak
    Member
    Posted 7 years ago #

    *bump*

  5. loak
    Member
    Posted 7 years ago #

    *bump again*

Topic Closed

This topic has been closed to new replies.

About this Topic