Htaccess rewrites
Материал из lulzette's wiki
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]