Pages, Articles & News
Tools & Plugins
Example / Placeholder Title


Description as an example placeholder. Sample text content for further customization of the "Index36" template.

You are free to edit and customize the template however you like. If you don’t have time or enough knowledge — you can always order template adaptation by contacting me via GitHub or private messages on the digital goods marketplace.

2024-07-03 15:34
fomin

как переход в http на https на сборке fobiz 

в конфиге исправил на https 

 

вводил коды в htaccess

адрес сайта вставляем без HTTPS.

Options -Indexes

RewriteEngine On

#301 редирект с домена с WWW на домен без WWW

RewriteCond %{HTTP_HOST} ^www.mysite.com$ [NC]

RewriteRule ^(.*)$ http://mysite.com/$1 [R=301,L]

#Перенос сайта на версию с HTTPS (для всех страниц)

RewriteCond %{SERVER_PORT} ^80$ [OR]

RewriteCond %{HTTP} =on

RewriteRule ^(.*)$ https://mysite.com/$1 [R=301,L]


И так…
Вариант №1

RewriteCond %{HTTPS} =off

RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [QSA,L]


Вариант №2

RewriteCond %{SERVER_PORT} !^443$

RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R,L]


Вариант №3

RewriteCond %{ENV:HTTPS} !on

RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]


Вариант №4

RewriteCond %{HTTP:X-HTTPS} !1

RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]


Вариант №5

RewriteCond %{HTTP:CF-Visitor} '"scheme":"http"'

RewriteRule ^(.*)$ https://www.site.ru/$1 [L]


Вариант №6

RewriteCond %{HTTP:X-Forwarded-Protocol} !=https

RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]


Вариант №7

RewriteCond %{HTTP:X-Forwarded-Proto} !https

RewriteCond %{HTTPS} off

RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE]


Вариант №8

RewriteEngine On

RewriteCond %{HTTPS} off

RewriteCond %{HTTP:X-Forwarded-Proto} !https

RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

 

 

шаблон криво работает 

This post was edited by webitproff (2024-07-04 00:23, 1 year ago)
Account