Redirecionando conexões http para https via Htaccess
A ideia aqui é simples, queremos redirecionar todas as conexões http para a mesma url em https. Para isto sem reinventar a roda podemos utilizar o htaccess para fazer isto no Apache: RewriteEngine On RewriteCond %{HTTPS} !on RewriteRule (.*)...