root@host:/var/www/htdocs# cat .htaccess RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^web_mail(.*) https://%{SERVER_NAME}/web_mail$1 [R,L]