mod_rewriteが使えるなら
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_URI} ^/anypath [OR]
RewriteCond %{REQUEST_URI} ^/otherpath
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(.*)$ https://www.example.com/$1 [R,L]
mod_rewriteが使えるなら
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_URI} ^/anypath [OR]
RewriteCond %{REQUEST_URI} ^/otherpath
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(.*)$ https://www.example.com/$1 [R,L]