URL on apache server does not default to the .php file after / has been added

Posted by jeffkee on Stack Overflow See other posts from Stack Overflow or by jeffkee
Published on 2011-01-07T07:43:26Z Indexed on 2011/01/07 8:54 UTC
Read the original article Hit count: 550

Filed under:
|
|
|
|

Generally a url that looks like this: http://www.domain.com/product.php/12/

will open up product.php and serve the /12/ as request parameters, which then my PHP script can process to pull out the right product info. However when I migrated this whole site, after developing it, to a new server, I get a 404 error, because on that server it's not defaulting to the mother directory/file in case of an absence of requested directories.

I vaguely remember learning that this is generally a common apache function but I can't seem to recall how to set it up or how to manipulate it.. if there's an .htaccess method to achieve this that would be great.

© Stack Overflow or respective owner

Related posts about php

Related posts about apache