Re: sf.php source
On Thu, Dec 08, 2005 at 08:03:44PM +0100, Jeroen van Wolffelaar wrote:
> On Thu, Dec 08, 2005 at 08:00:30PM +0100, Thijs Kinkhorst wrote:
> > On Thu, 2005-12-08 at 19:52 +0100, Jeroen van Wolffelaar wrote:
> > > On Thu, Dec 08, 2005 at 01:44:05PM -0500, Justin Pryzby wrote:
> > > > So, I figured out how to use CVS again, and looked at the source for
> > > > <http://qa.debian.org/watch/sf.php>. Is there any reason for
> > > > implementation in PHP rather than with an apache redirect?
> > >
> > > php code changes take effect immediately, and are more porteable. Apache
> > > redirect requires sufficient privileges to the apache config (I think qa
> > > has that, but at the original place in someone's public_html, that was
> > > probably not the case), and a reload of apache upon changes.
> > >
> > > That's what I can think of, but this has never been discussed before to
> > > the best of my knowledge, so the real original answer is most likely
> > > just "Because the author choose php".
Fair enough. But I just noticed
RewriteRule ^/watch/sf.php/(.*) /watch/sf.php?project=$1
so I have to wonder if a pure rewrite solution isn't better:
RewriteRule ^/watch/sf.php/*\?project=/*(.*)$ http://heanet.dl.sourceforge.net/sourceforge/$1 [redirect]
(untested)
--
Clear skies,
Justin
Reply to: