How do I force SSL for specific pages with Apache & mod_rewrite?

Create a .htaccess file in which ever directorys you want to encrypt.
In this example the directory is /encrypted

RewriteEngine On
RewriteRule ^(.*)$ https://www.example.com/encrypted/$1 [R,L]