Skip to content

Instantly share code, notes, and snippets.

@ntorga
Created March 7, 2018 14:07
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 ntorga/ad871eda47f7b96d9381f9348604ef33 to your computer and use it in GitHub Desktop.
Save ntorga/ad871eda47f7b96d9381f9348604ef33 to your computer and use it in GitHub Desktop.
# 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