RewriteEngine On RewriteCond %{HTTPS} off RewriteCond %{HTTP_HOST} ^xmlgraphics\.apache [NC] RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]