#
# Turn on RewriteEngine
#

RewriteEngine On

#  let the server know that we were reached via /peffisaur and not
#  via the physical path prefix /home/stefan/../peffisaur
#  If you are installing Peffisaur in the root on your webserver
#  then leave it as /. If you say for instance install it in 
#  /peffis_is_the_coolest then write that path here instead and also 
#  in the rules below (put /peffis_is_the_coolest/send.php and 
#  /peffis_is_the_coolest/home.php there
RewriteBase   /peffisaur

#  now the rewriting rule
#  This rule makes it possible to access send.php as
#  http://<server>/<uid>/<pwd>
#
RewriteRule   ^s/([^/]+)/([^/]+)    /peffisaur/send.php [E=uid:$1,E=pwd:$2]
RewriteRule   ^~(.*)    /peffisaur/home.php?user=$1 
