Apache URL problem

Discussion in 'Apache' started by grunff, Sep 10, 2006.

  1. #1
    Hi all,

    Server: Apache 1.3.31 on FreeBSD

    I'm working on a project where I need to use URLs in this format:

    http://yoursite.com/default.php/id/17

    instead of

    http://yoursite.com/default.php?id=17

    The rewriting is done in php, within the application - it doesn't use mod_rewrite.

    The problem I'm having is that the server doesn't like that URL format - it seems to look for a firectory called default.php, and another one called id, instead of serving up default.php. This results in a 500 error.

    I know you can get the server to just serve up default.php, ignoring the rest of the URL (which will be parsed by the php) - I've seen it done on many other servers. What I don't know is how to achieve this.

    Any help much appreciated.
     
    grunff, Sep 10, 2006 IP