Как перенаправить с http на https в .htaccess
В .htaccess добавляем:
1 2 3 4 5 6 |
RewriteEngine On # HTTPS redirect if available RewriteCond %{HTTPS} !=on RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L] |
1 2 3 4 5 6 |
RewriteEngine On # HTTPS redirect if available RewriteCond %{HTTPS} !=on RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L] |