HTTP and WWW to HTTPS redirect

Vyřešeno2.50K zhlédnutíWebSitehtaccess Https Redirect
0

Hi team WEDOSI have noticed recently that on mhy domain websiteswanted.eu, the http:// and www. versions do not redirect correctly to https://
I have inserted the correct code (see below) in the domain .htaccess file, but it doesn’t seem to work.

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{SERVER_NAME}/$1 [R=301]
Header set Content-Security-Policy „upgrade-insecure-requests;“

Role: Zákazník
Otázka je uzamčena pro nové odpovědi.
MB313456 Vybral nejlepší odpověď
0
148.62K Odpověď od WEDOS Internet, a.s. 0 Komentář

It shouldn’t matter, but if they only have the same code, I would suggest deleting them just in case.

Role: Podpora Web: https://kb.vedos.cz Vizitka: VEDOS Specialista na Znalostní bázi
MB313456 Odpověděl na otázku
Prohlížíte 1 ze 5 odpovědí, klikněte zde pro zobrazení všech odpovědí.