Skip to content

Instantly share code, notes, and snippets.

@akkord87
Created June 15, 2017 15:33
Show Gist options
  • Save akkord87/dd97af0fea42b84d3db82274124abf5d to your computer and use it in GitHub Desktop.
Save akkord87/dd97af0fea42b84d3db82274124abf5d to your computer and use it in GitHub Desktop.
301 редирект с http на https
# SSL: 301 redirect to https from http
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment