Using "static" URLs
| From: | Martin Jansen | Date: | Sat, 26 Jul 2003 15:35:37 +0000 |
| Subject: | Using "static" URLs | ||
| Groups: | php.pear.webmaster | ||
| Request: | Send a blank email to pear-webmaster+get-424@lists.php.net to get a copy of this message | ||
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?
--
- Martin Martin Jansen
http://martinjansen.com/