Re: [pear-webmaster] Using "static" URLs

From: Date: Sat, 26 Jul 2003 16:36:34 +0000
Subject: Re: [pear-webmaster] Using "static" URLs
References: 1  Groups: php.pear.webmaster 
Request: Send a blank email to pear-webmaster+get-425@lists.php.net to get a copy of this message
On Sat, 26 Jul 2003, Martin Jansen wrote: > Hi, > > as you might have noticed, we do have some decent magic in the 404 error > page which allow us to use URLs like > > http://pear.php.net/~mj > or http://pear.php.net/Mail_Mime > > to redirect to the account information page for /me resp. the package > information for Mail_Mime. While this links are pretty nice and easy to > remember, I'm a bit worried as they require us to perform redundant > database queries. > > Thus my plan is to set up mod_rewrite rules supporting URLs like > > http://pear.php.net/user/mj > or http://pear.php.net/package/Mail_Mime > > as an alternative to the ones mentioned above. Thus we don't need to > "abuse" the 404 handler for this and we don't need to make more database > queries than necessary. I'm aware that having two "official" links will > be a bit confusing, but I'm willing to risk that. > > Comments? Suggestions? I agree to the new URL format. In fact, I would suggest changing/aliasing the existing package-info.php script to /package, and make it handle PATH_INFO. Ditto for /user. - Stig

« previous php.pear.webmaster (#425) next »