You are here: Re: clean urls « PHP Programming Language « IT news, forums, messages
Re: clean urls

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.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация