RewriteRule ^/(~.*)/cgi/(.+) /cgi-bin/sbox/$1/$2 [PT,NS]