Skip to content

Instantly share code, notes, and snippets.

@SevereCloud
Last active June 16, 2020 14:34
Show Gist options
  • Save SevereCloud/6f6270f6aeaad53f23c8879c6ff1824b to your computer and use it in GitHub Desktop.
Save SevereCloud/6f6270f6aeaad53f23c8879c6ff1824b to your computer and use it in GitHub Desktop.
  1. Получаем сертификат в личном кабинете.
  2. Проверяем, работает ли сертификат, добавив перед доменом https://
  3. В файл .htaccess после строчки RewriteEngine On нужно написать
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment