Created
March 7, 2018 14:07
-
-
Save ntorga/ad871eda47f7b96d9381f9348604ef33 to your computer and use it in GitHub Desktop.
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
# BEGIN REDIRECT TO HTTPS | |
RewriteEngine On | |
RewriteCond %{HTTPS} off | |
RewriteCond %{HTTP:X-DELIVERED-BY} !^8CDN | |
RewriteCond %{HTTP_HOST} ^seudominio.com.br [OR] | |
RewriteCond %{HTTP_HOST} ^www.seudominio.com.br [NC] | |
RewriteRule ^(.*)$ https://www.seudominio.com.br/$1 [L,R=301] | |
RewriteEngine On | |
RewriteCond %{HTTPS} on | |
RewriteCond %{HTTP:X-DELIVERED-BY} !^8CDN | |
RewriteCond %{HTTP_HOST} ^seudominio.com.br [NC] | |
RewriteRule ^(.*)$ https://www.seudominio.com.br/$1 [L,R=301] | |
# END REDIRECT TO HTTPS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment