Skip to content

Instantly share code, notes, and snippets.

@ricardobarantini
Last active March 2, 2018 21:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ricardobarantini/110f388e93b4ea956c527316259c24c0 to your computer and use it in GitHub Desktop.
Save ricardobarantini/110f388e93b4ea956c527316259c24c0 to your computer and use it in GitHub Desktop.
Forçar HTTPS em website
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.domain.tld/$1 [R=301,L]

Forçar HTTPS em website

Apenas altere a url https://www.domain.tld/ para a url desejada e salve o arquivo .htaccess na raiz do website.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment