Using .htaccess to Redirect to an SSL Connection

March 2nd, 2008

I’ve been doing work for a client needing part of their site to be protected by SSL. All traffic to that section needed to be routed through a secure (https) connection. Unexpectedly I found a solution for ensuring this that was so simple, I had to post it here.