# Force to use SSL
RewriteEngine on
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^/(.*)$ https://%{HTTP_HOST}/$1 [L,R]
Example:
# Force Nagios to use SSL
RewriteEngine on
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^/nagios(.*)$ https://%{HTTP_HOST}/nagios$1 [L,R]