RewriteCond %{HTTPS} =on RewriteCond %{HOST_NAME} !domain.com # You'll probably need sslerror.html in all your vhost's documentroot, but you can experiment on making a global area for all your vhosts, like a global Alias or something... RewriteRule .* /sslerror.html