Put the handler stuff in the vhost/server block instead of the .htaccess. Leave the .htaccess just for the UNA stuff.