Действия

Htaccess rewrites

Материал из lulzette's wiki

Версия от 07:07, 8 июня 2020; Losted (обсуждение | вклад) (Новая страница: «== www->!www + http->https == <source> #redirect www+https RewriteCond %{HTTP_HOST} ^www\.energysport\.store$ [NC] RewriteRule ^(.*)$ https://energysport.store/$...»)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

www->!www + http->https

#redirect www+https
RewriteCond %{HTTP_HOST} ^www\.energysport\.store$ [NC]
RewriteRule ^(.*)$ https://energysport.store/$1 [R=301,L]
RewriteCond %{HTTP:X-HTTPS} !1
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]