Server with SSL Moving port 80 to 443
Here is an example of what you could do when you have a server that is running SSL and you still have users trying to access it on port 80 and you want them to be automatically moved to port 443. Now this example is assuming that you do not have other virtual hosts as SSL will not work with NameBased Hosting.
CustomLog logs/example.com-access_log common
RewriteRule ^(.*)$ https://example.com/$1 [L,R]