RewriteCond %{HTTP:Authorization} ^(.*) RewriteCond %{LA-U:REMOTE_USER} ^(.*) Header add HTTP_X_REMOTE_USER %{LA-U:REMOTE_USER}e RewriteRule ^/(.*) \ http://localhost:7080/VirtualHostBase/http/%{HTTP_HOST}/folder/ldaptest/VirtualHostRoot/$1 [L,P]