| Posted by Daniel Tryba on 07/01/05 14:41 
somaboy mx <nosuch@fakemail.fk> wrote:> I'm looking for a way to come up with clean urls like
 > http://www.mysite.com/products/233 instead of
 > http://www.mysite.com/products.php?pid=233 without having to rely on
 > mod_rewrite or other server-specific solutions.
 
 You could be lucky and have the first URL working (if the second one
 already works (depending on httpd configuration (Apache Multiview
 IIRC))) and find 233 in _SERVER['PATH_INFO']. But that still depends on
 platform. Alternatively you could build an intelligent 404 handler which
 should work on all platforms supporting dynamic 404 handlers (which I
 guess is most), but again platform dependend.
 
 Most likely to work out of the box is http://www.mysite.com/products.php/233.
 
 But I guess there is no single guaranteed multiplatform solution.
 [Back to original message] |