On Tue, May 31, 2005 at 12:40:58PM +0100, Martin Michlmayr wrote:
> * Roland Mas <[EMAIL PROTECTED]> [2005-05-30 16:44]:
> > > Roland, can you send a patch for this?
> > 
> > RerwriteRule ^/watch/sf.php/(.*) /watch/sf.php?project=$1
> > 
> > Otherwise it needs fiddling with PATHINFO, something I've never done.
> 
> Let's see if merkel does re-write rules.

after a few tests also this seems to work:
( merkel:~filippo/public_html/sf.php )

<?php
$me=pathinfo($_SERVER['PHP_SELF']);
$req=pathinfo($_SERVER['REQUEST_URI']);

if( strcmp($me['basename'],$req['basename']) == 0 )
        $project=$req['basename'];

header("Location: http://heanet.dl.sourceforge.net/sourceforge/$project/";);
?>

filippo


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to