lighttpd forum migration > QUERY_STRING howto?

Posted by Michael La
on 23.05.2007 13:02
hey guys i have a problem with the mod_rewrite rules...

this is the old part

RewriteCond %{QUERY_STRING} (.*)
RewriteRule ^announce([a-z0-9]{16}).php$ /announce.php?%1&passkey=$1 
[QSA,L]

have testet this...

url.rewrite-once = (
        "^/announce([a-z0-9]{16}).php?(.*)$" => 
"/announce.php?$2&passkey=$1"

)


but not working how can i make this with a QUERY_STRING ?

sry 4 my bad english

mfg MPL
Posted by Christian Hoffmann
on 16.06.2007 11:46
Michael La wrote:
> url.rewrite-once = (
>         "^/announce([a-z0-9]{16}).php?(.*)$" => 
> "/announce.php?$2&passkey=$1"
> 
> )
Try
url.rewrite = ( "^/announce([a-z0-9]{16})\.php(?:\?(.*))?$" => 
"/announce.php?$2&passkey=$1" )
Posted by Michael La
on 16.06.2007 12:04
hmmm not working =(