Re: Shorter URLs on cvs.php.net
| From: | Stefan Neufeind, PEAR | Date: | Sun, 20 Jun 2004 22:13:31 +0000 |
| Subject: | Re: Shorter URLs on cvs.php.net | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-30989@lists.php.net to get a copy of this message | ||
Chuck Hagenbuch wrote:
I've just updated cvs.php.net to use mod_rewrite to allow URLs such as: http://cvs.php.net/pear/Mail/ Old URLs will still work just fine, but the above style is used by default, so if you want to update any website links, you can. Note that for top-level directories, you *must* include the trailing slash if you want the rewriting to work properly. If you specify cvs.php or browse.php in the path, though, then trailing slashes aren't required, and they're not required for subdirectories either (the rule just requires that there's at least one / for an URL to be rewritten). Better rules would be welcome. :) Hi Chuck,I've also thought about some "magic redirects" when working with the CVS-interface. Let's say I followed a link to browse a file's contents, like: http://cvs.php.net/co.php/pear/Mail/Mail.php?r=1.8 And if I now shorten the URL to http://cvs.php.net/co.php/pear/Mail/ maybe co.php could recognize that we're talking about a directory, not a file, and issue a header-Location to the correct URL for browsing? Regards, Stefan