1
AddDefaultCharset utf-8
RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

Как эти параметры перевести на https?

1 ответ 1

4

Добавьте ещё одно перенаправление:

AddDefaultCharset utf-8
RewriteCond %{HTTP:SSL} !=1 [NC]
RewriteRule ^(.*) https://саййт.com/$1 [L,R=301]

RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
0

Ваш ответ

By clicking “Отправить ответ”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Всё ещё ищете ответ? Посмотрите другие вопросы с метками или задайте свой вопрос.