Re: clean urls
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: clean urls

From: Alvaro G Vicario <alvaro_QUITAR_REMOVE@telecomputeronline.com>
Date: Fri Jul 01 2005 - 12:02:49 CEST

*** somaboy mx wrote/escribió (Fri, 1 Jul 2005 11:08:55 +0200):
> 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.
>
> any suggestions, links to articles etc?

If you don't want your webserver to parse your URLs, then you must have
real files and directories (or at least symlinks, but of course these are
quite server-specific too).

A way to do so would be creating static files from a PHP script every time
your database contents are modified.

-- 
-- Álvaro G. Vicario - Burgos, Spain
-- http://bits.demogracia.com - Mi sitio sobre programación web
-- Don't e-mail me your questions, post them to the group
--
Received on Mon Oct 17 21:00:22 2005