Действия

Htaccess rewrites: различия между версиями

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

(Новая страница: «== www->!www + http->https == <source> #redirect www+https RewriteCond %{HTTP_HOST} ^www\.energysport\.store$ [NC] RewriteRule ^(.*)$ https://energysport.store/$...»)
 
м (Wikilosted переименовал страницу Htaccess в Htaccess rewrites без оставления перенаправления)
(нет различий)

Версия от 07:42, 8 июня 2020

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]