HTTP and WWW to HTTPS redirect
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ěď
5 Odpověď
Hello, the code we recommend is
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{SERVER_NAME}/$1 [R=301,L]
Header set Content-Security-Policy "upgrade-insecure-requests;"
just below
RewriteEngine On
in the www folder.
MB313456 Vybral nejlepší odpověď