Wouldn't it be as simple as enabling SSL on the web server configuration and then doing a rewrite of all http traffic to https?
Something similar to
Code:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
in your .htaccess?
I think (if you are using Apache) you can also do it in your vhost configuration file. At one time I had this set up on my local server (this is just an example that I found via Google). This example doesn't even require defining of a document root for the http (port 80) setting.
Code:
NameVirtualHost *:80
<VirtualHost *:80>
ServerName www.example.com
Redirect permanent / https://secure.example.com/
</VirtualHost>
<VirtualHost _default_:443>
ServerName secure.example.com
DocumentRoot /usr/local/apache2/htdocs
SSLEngine On
# etc...
</VirtualHost>