- RewriteCond %{LA-U:REQUEST_FILENAME} -f
- RewriteRule ^/cgi-bin/(.*)$ /cgi-bin/cgiwrap/~<%= @user %>/cgi-bin/$1 [PT,L]
-
- RewriteCond %{LA-U:REQUEST_FILENAME} -f
- RewriteRule ^/cgi-bin-d/(.*)$ /cgi-bin/cgiwrapd/~<%= @user %>/cgi-bin/$1 [PT,L]
+ RewriteCond <%= @directory %>%{REQUEST_FILENAME} -f
+ RewriteRule ^/cgi-bin/(.*)$ /~<%= @user %>/cgi-bin/$1 [PT,L]