Apenas altere a url https://www.domain.tld/
para a url desejada e salve o arquivo .htaccess
na raiz do website.
Last active
March 2, 2018 21:12
-
-
Save ricardobarantini/110f388e93b4ea956c527316259c24c0 to your computer and use it in GitHub Desktop.
Forçar HTTPS em website
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RewriteEngine On | |
RewriteCond %{SERVER_PORT} 80 | |
RewriteRule ^(.*)$ https://www.domain.tld/$1 [R=301,L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment