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 (.*)...
A
Admin
15 Sep, 2018 ·
1 min de leitura
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 (.*) https://%{HTTP_HOST}%{REQUEST_URI}